'Checks that the test suite cleanups its tests during the run, so that
it ends empty.'

def test_cleanup(self):

    class MockTest(pyunit.TestCase, ):
        def test_foo(test):
            pass
    test = MockTest('test_foo')
    result = reporter.TestResult()
    suite = runner.DestructiveTestSuite([test])
    self.assertEqual(suite.countTestCases(), 1)
    suite.run(result)
    self.assertEqual(suite.countTestCases(), 0)
