t.t.u.T.addCleanup(self, f, *args, **kwargs) : method documentation

Part of twisted.trial.unittest.TestCase View Source

Add the given function to a list of functions to be called after the test has run, but before tearDown.

Functions will be run in reverse order of being added. This helps ensure that tear down complements set up.

The function f may return a Deferred. If so, TestCase will wait until the Deferred has fired before proceeding to the next function.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.