Infrastructure for test running and suites.

Variable pyunit Undocumented
Function _clearSuite Clear all tests from suite.
Class _PyUnitTestCaseAdapter Adapt from pyunit.TestCase to ITestCase.
Class _BrokenIDTestCaseAdapter Adapter for pyunit-style TestCase subclasses that have undesirable id() methods. That is unittest.FunctionTestCase and unittest.DocTestCase.
Class _ForceGarbageCollectionDecorator Forces garbage collection to be run before and after the test. Any errors logged during the post-test collection are added to the test result as errors.
Variable _docTestCase Undocumented
Function _iterateTests Iterate through all of the test cases in testSuiteOrCase.
pyunit =
Undocumented
def _clearSuite(suite): (source)

Clear all tests from suite.

This messes with the internals of suite. In particular, it assumes that the suite keeps all of its tests in a list in an instance variable called _tests.

_docTestCase =
Undocumented
def _iterateTests(testSuiteOrCase): (source)

Iterate through all of the test cases in testSuiteOrCase.

API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.