def test_addCleanupCalledInReverseOrder(self):
        self.test.addCleanup(self.test.append, "foo")
        self.test.addCleanup(self.test.append, 'bar')
        self.test.run(self.result)
        self.assertEqual(['setUp', 'runTest', 'bar', 'foo', 'tearDown'],
                         self.test.log)
Callables added with C{addCleanup} should be called before C{tearDown}
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/trial/test/test_tests.py/AddCleanupMixin.test_addCleanupCalledInReverseOrder