test.support.import_fresh_module(name, fresh=(), blocked=(), deprecated=False) This function imports and returns a fresh copy
run(result=None) Run the test, collecting the result into the TestResult object passed as result. If result
assertWarnsRegex(warning, regex, callable, *args, **kwds) assertWarnsRegex(warning, regex, msg=None) Like
typing.get_type_hints(obj) Return type hints for a function or method object. This is often
class typing.Generic Abstract base class for generic types. A generic type is typically declared
class unittest.mock.NonCallableMagicMock(*args, **kw) A non-callable version of MagicMock. The
doctest.register_optionflag(name) Create a new option flag with a given name, and return the new flag’s integer value.
unittest.installHandler() Install the control-c handler. When a signal.SIGINT is received (usually in response
mock_add_spec(spec, spec_set=False) Add a spec to a mock. spec can either be an object or a list of strings. Only attributes
_get_child_mock(**kw) Create the child mocks for attributes and return value. By default child mocks will be the same type as
Page 1 of 28