run(result=None) Run the test, collecting the result into the TestResult object passed as result. If result
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
filename The name of the file that this DocTest was extracted from; or None if the filename is unknown
unittest.main(module='__main__', defaultTest=None, argv=None, testRunner=None, testLoader=unittest.defaultTestLoader, exit=True, verbosity=1, failfast=None, catchbreak=None
unittest.mock.sentinel The sentinel object provides a convenient way of providing unique objects for your tests
assertSetEqual(first, second, msg=None) Tests that two sets are equal. If not, an error message is constructed that lists the
Page 1 of 28