def test_runUntilFailureForceGCDecorate(self):
        decorated = []
        def decorate(test, interface):
            decorated.append((test, interface))
            return test
        self.patch(unittest, "decorate", decorate)
        self.runner._forceGarbageCollection = True
        result = self.runner.runUntilFailure(self.test)
        self.failUnlessEqual(result.testsRun, 1)

        self.assertEquals(len(decorated), 2)
        self.assertEquals(decorated,
            [(self.test, ITestCase),
             (self.test, unittest._ForceGarbageCollectionDecorator)])
C{runUntilFailure} applies the force-gc decoration after the standard
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_runner.py/TestUntilFailure.test_runUntilFailureForceGCDecorate