Known subclasses: twisted.trial.test.test_tests.GarbageCollectionDefaultTests, twisted.trial.test.test_tests.GarbageCollectionTests

I provide a few mock tests that log setUp, tearDown, test execution and garbage collection. I'm used to test whether gc.collect gets called.

Class BasicTest Mock test to run.
Method collect Fake gc.collect
Method setUp Setup our test case
Method tearDown Tear down the test
Method _log Log function
def _log(self, msg):

Log function

def collect(self):

Fake gc.collect

def setUp(self):

Setup our test case

def tearDown(self):

Tear down the test

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.