unittest.mock.patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs)
records A list of
assertIsInstance(obj, cls, msg=None) assertNotIsInstance(obj, cls, msg=None) Test that obj is (or is not)
assertTupleEqual(first, second, msg=None) Tests that two lists or tuples are equal. If not, an error message is constructed
longMessage If set to True then any explicit failure message you pass in to the assert methods will
assertMultiLineEqual(first, second, msg=None) Test that the multiline string first is equal to the string second
assert_has_calls(calls, any_order=False) assert the mock has been called with the specified calls. The mock_calls
loadTestsFromName(name, module=None) Return a suite of all tests cases given a string specifier. The
failures A list containing 2-tuples of TestCase instances and strings holding formatted tracebacks. Each tuple
report_success(out, test, example, got) Report that the given example ran successfully. This method is provided to allow subclasses
Page 22 of 28