'Called by L{unittest.TestCase} after a test to catch any logged errors
or pending L{DelayedCall<twisted.internet.base.DelayedCall>}s.'

def postCaseCleanup(self):

    calls = self._cleanPending()
    if calls:
        aggregate = DirtyReactorAggregateError(calls)
        self.result.addError(self.test, Failure(aggregate))
        return False
    return True
