Part of twisted.trial.util View Source View In Hierarchy
Instance Variable | test | The TestCase to
report errors about. |
Instance Variable | result | The IReporter to
report errors to. |
Instance Variable | reactor | The reactor to use. If None, the global reactor will be used. |
Method | __init__ | |
Method | postCaseCleanup | Called by unittest.TestCase
after a test to catch any logged errors or pending
DelayedCall s. |
Method | postClassCleanup | Called by unittest.TestCase
after the last test in a TestCase subclass. Ensures the
reactor is clean by murdering the threadpool, catching any pending
DelayedCall s, open sockets etc. |
Method | _getReactor | Get either the passed-in reactor or the global reactor. |
Method | _cleanPending | Cancel all pending calls and return their string representations. |
Method | _cleanThreads | Undocumented |
Method | _cleanReactor | Remove all selectables from the reactor, kill any of them that were processes, and return their string representation. |
Parameters | test | See _Janitor.test . |
result | See _Janitor.result . | |
reactor | See _Janitor.reactor . |
unittest.TestCase
after the last test in a TestCase
subclass. Ensures the
reactor is clean by murdering the threadpool, catching any pending
DelayedCall
s, open sockets etc.