Tests for assertions provided by SynchronousTestCase and TestCase, provided by twisted.trial.unittest.

TestFailureTests demonstrates that SynchronousTestCase.fail works, so that is the only method on twisted.trial.unittest.SynchronousTestCase that is initially assumed to work. The test classes are arranged so that the methods demonstrated to work earlier in the file are used by those later in the file (even though the runner will probably not run the tests in this order).

Class MockEquality Undocumented
Class ComparisonError An object which raises exceptions from its comparison methods.
Class TestFailureTests Tests for the most basic functionality of SynchronousTestCase, for failing tests.
Class AssertFalseTests Tests for SynchronousTestCase's assertFalse and failIf assertion methods.
Class AssertTrueTests Tests for SynchronousTestCase's assertTrue and failUnless assertion methods.
Class SynchronousAssertionsTests Tests for SynchronousTestCase's assertion methods. That is, failUnless*, failIf*, assert* (not covered by other more specific test classes).
Class WarningAssertionTests No class docstring; 13/13 methods documented
Class ResultOfAssertionsTests Tests for SynchronousTestCase.successResultOf, SynchronousTestCase.failureResultOf, and SynchronousTestCase.assertNoResult.
Class ResultOfCoroutineAssertionsTests A dummy class to show that this test file was discovered but the tests are unable to be run in this version of Python.
Class AssertionNamesTests Tests for consistency of naming within TestCase assertion methods
Class CallDeprecatedTests Test use of the SynchronousTestCase.callDeprecated method with version objects.
Function oldMethod Deprecated method for testing.
Function oldMethodReplaced Another deprecated method, which has been deprecated in favor of the mythical 'newMethod'.
def oldMethod(x):

Deprecated method for testing.

def oldMethodReplaced(x):

Another deprecated method, which has been deprecated in favor of the mythical 'newMethod'.

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