method_calls As well as tracking calls to themselves, mocks also track calls to methods and attributes, and their methods
assertRaises(exception, callable, *args, **kwds) assertRaises(exception, msg=None) Test that an exception is raised
call_count An integer telling you how many times the mock object has been called:
countTestCases() Return the number of tests represented by this test object, including all individual tests and sub-suites.
The term NFTs is all over the web and in people's minds too. The fad for NFTs is eternal. Many businesses are planning to
reset_mock() The reset_mock method resets all the call attributes on a mock object:
__iter__() Tests grouped by a TestSuite are always accessed by iteration. Subclasses can lazily provide tests by
examples A list of Example objects encoding the individual interactive Python examples that should be run by this
assert_any_call(*args, **kwargs) assert the mock has been called with the specified arguments. The
patch.multiple(target, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) Perform multiple
Page 27 of 28