summarize(verbose=None) Print a summary of all the test cases that have been run by this DocTestRunner, and return a
name A string name identifying the DocTest. Typically, this is the name of the object or file that the test was
skipped A list containing 2-tuples of TestCase instances and strings holding the reason for skipping the test.
method_calls As well as tracking calls to themselves, mocks also track calls to methods and attributes, and their methods
@unittest.expectedFailure Mark the test as an expected failure. If the test fails when run, the test is not counted as a failure
class typing.KeysView(MappingView[KT_co], AbstractSet[KT_co]) A generic version of
@unittest.skipUnless(condition, reason) Skip the decorated test unless condition is true.
stopTestRun() Called once after all tests are executed.
class typing.SupportsAbs An ABC with one abstract method __abs__ that is covariant in its return type.
unittest.mock.mock_open(mock=None, read_data=None) A helper function to create a mock to replace the use of
Page 24 of 28