get_doctest(string, globs, name, filename, lineno) Extract all doctest examples from the given string, and collect them into
docstring The string that the test was extracted from, or ‘None’ if the string is unavailable, or if the test was not extracted
@typing.no_type_check(arg) Decorator to indicate that annotations are not type hints. The argument
class typing.Union Union type; Union[X, Y] means either X or Y. To define a union
test.support.temp_umask(umask) A context manager that temporarily sets the process umask.
class unittest.mock.Mock(spec=None, side_effect=None, return_value=DEFAULT, wraps=None, name=None, spec_set=None, unsafe=False, **kwargs)
maxDiff This attribute controls the maximum length of diffs output by assert methods that report diffs on failure. It defaults
Source code: Lib/pydoc.py
class unittest.mock.MagicMock(*args, **kw) MagicMock is a subclass of Mock with default implementations
buffer If set to true, sys.stdout and sys.stderr will be buffered in between startTest()
Page 4 of 28