'test gc.collect is called before and after each test.'

def test_collectCalled(self):

    test = GarbageCollectionTests.BasicTest('test_foo')
    test = _ForceGarbageCollectionDecorator(test)
    result = reporter.TestResult()
    test.run(result)
    self.assertEqual(self._collectCalled, ['collect', 'setUp', 'test', 'tearDown', 'collect'])
