patch.object(target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) patch
assertSetEqual(first, second, msg=None) Tests that two sets are equal. If not, an error message is constructed that lists the
class unittest.mock.MagicMock(*args, **kw) MagicMock is a subclass of Mock with default implementations
mock_add_spec(spec, spec_set=False) Add a spec to a mock. spec can either be an object or a list of strings. Only attributes
class typing.MappingView(Sized, Iterable[T_co]) A generic version of
assertIs(first, second, msg=None) assertIsNot(first, second, msg=None) Test that first and second
docstring The string that the test was extracted from, or ‘None’ if the string is unavailable, or if the test was not extracted
test.support.forget(module_name) Remove the module named module_name from sys.modules and delete any byte-compiled
@typing.no_type_check(arg) Decorator to indicate that annotations are not type hints. The argument
class unittest.mock.Mock(spec=None, side_effect=None, return_value=DEFAULT, wraps=None, name=None, spec_set=None, unsafe=False, **kwargs)
Page 2 of 28