addSubTest(test, subtest, outcome) Called when a subtest finishes. test is the test case corresponding to the test
called A boolean representing whether or not the mock object has been called:
configure_mock(**kwargs) Set attributes on the mock through keyword arguments. Attributes plus
assertTrue(expr, msg=None) assertFalse(expr, msg=None) Test that expr is true (or false).
__dir__() Mock objects limit the results of dir(some_mock) to useful results. For mocks with a spec
want The expected output from running the example’s source code (either from stdout, or a traceback in case of exception). want
name A string name identifying the DocTest. Typically, this is the name of the object or file that the test was
side_effect This can either be a function to be called when the mock is called, an iterable or an exception (class or instance)
class unittest.TestLoader The TestLoader class is used to create test suites from classes and modules. Normally
class typing.Reversible An ABC with one abstract method __reversed__ returning an Iterator[T_co].
Page 23 of 28