t.t.u._Janitor(object) : class documentation

Part of twisted.trial.util View Source View In Hierarchy

The guy that cleans up after you.
Instance VariablestestThe TestCase to report errors about.
resultThe IReporter to report errors to.
reactorThe 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 DelayedCalls.
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 DelayedCalls, 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.
def __init__(self, test, result, reactor=None): (source)
ParameterstestSee _Janitor.test.
resultSee _Janitor.result.
reactorSee _Janitor.reactor.
def postCaseCleanup(self): (source)
Called by unittest.TestCase after a test to catch any logged errors or pending DelayedCalls.
def postClassCleanup(self): (source)
Called by unittest.TestCase after the last test in a TestCase subclass. Ensures the reactor is clean by murdering the threadpool, catching any pending DelayedCalls, open sockets etc.
def _getReactor(self): (source)
Get either the passed-in reactor or the global reactor.
def _cleanPending(self): (source)
Cancel all pending calls and return their string representations.
def _cleanThreads(self): (source)
Undocumented
def _cleanReactor(self): (source)
Remove all selectables from the reactor, kill any of them that were processes, and return their string representation.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:02:37.