'Callables added with C{addCleanup} should be called before C{tearDown}
in reverse order of addition.'

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)
