unittest.mock.patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs)
errors A list containing 2-tuples of TestCase instances and strings holding formatted tracebacks. Each tuple represents
assert_has_calls(calls, any_order=False) assert the mock has been called with the specified calls. The mock_calls
assertIsNone(expr, msg=None) assertIsNotNone(expr, msg=None) Test that expr is (or is not) None.
assertIsInstance(obj, cls, msg=None) assertNotIsInstance(obj, cls, msg=None) Test that obj is (or is not)
exc_msg The exception message generated by the example, if the example is expected to generate an exception; or None
assert_any_call(*args, **kwargs) assert the mock has been called with the specified arguments. The
class unittest.mock.PropertyMock(*args, **kwargs) A mock intended to be used as a property, or other descriptor, on a class
class unittest.mock.NonCallableMock(spec=None, wraps=None, name=None, spec_set=None, **kwargs) A non-callable version of Mock
stop() This method can be called to signal that the set of tests being run should be aborted by setting the shouldStop
Page 23 of 28