'Add the given function to a list of functions to be called after the
test has run, but before C{tearDown}.
Functions will be run in reverse order of being added. This helps
ensure that tear down complements set up.
As with all aspects of L{SynchronousTestCase}, Deferreds are not
supported in cleanup functions.'

def addCleanup(self, f, *args, **kwargs):

    self._cleanups.append((f, args, kwargs))
