test.support.is_resource_enabled(resource) Return True if resource is enabled and available. The list
addSubTest(test, subtest, outcome) Called when a subtest finishes. test is the test case corresponding to the test
__dir__() Mock objects limit the results of dir(some_mock) to useful results. For mocks with a spec
lineno The line number within filename where this DocTest begins, or None if the line
report_success(out, test, example, got) Report that the given example ran successfully. This method is provided to allow subclasses
called A boolean representing whether or not the mock object has been called:
assertIsNotNone(expr, msg=None) Test that expr is (or is not) None.
assert_any_call(*args, **kwargs) assert the mock has been called with the specified arguments. The
assertListEqual(first, second, msg=None) assertTupleEqual(first, second, msg=None) Tests that two lists or tuples
mock_calls mock_calls records all calls to the mock object, its methods, magic methods and return
Page 23 of 28