maxDiff This attribute controls the maximum length of diffs output by assert methods that report diffs on failure. It defaults
class typing.MappingView(Sized, Iterable[T_co]) A generic version of
class typing.Mapping(Sized, Iterable[KT], Container[KT], Generic[VT_co]) A generic version of
unittest.installHandler() Install the control-c handler. When a signal.SIGINT is received (usually in response
unittest.mock.sentinel The sentinel object provides a convenient way of providing unique objects for your tests
class typing.Union Union type; Union[X, Y] means either X or Y. To define a union
docstring The string that the test was extracted from, or ‘None’ if the string is unavailable, or if the test was not extracted
get_doctest(string, globs, name, filename, lineno) Extract all doctest examples from the given string, and collect them into
run(result=None) Run the test, collecting the result into the TestResult object passed as result. If result
test.support.import_fresh_module(name, fresh=(), blocked=(), deprecated=False) This function imports and returns a fresh copy
Page 1 of 28