assertRegex(text, regex, msg=None) assertNotRegex(text, regex, msg=None) Test that a regex search matches
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.import_module(name, deprecated=False) This function imports and returns the named module. Unlike a normal import
doctest.debug(module, name, pm=False) Debug the doctests for an object. The module
patch.dict(in_dict, values=(), clear=False, **kwargs) Patch a dictionary, or dictionary like object, and restore the dictionary
filename The name of the file that this DocTest was extracted from; or None if the filename is unknown
get_doctest(string, globs, name, filename, lineno) Extract all doctest examples from the given string, and collect them into
assertIs(first, second, msg=None) assertIsNot(first, second, msg=None) Test that first and second
_get_child_mock(**kw) Create the child mocks for attributes and return value. By default child mocks will be the same type as
class typing.Dict(dict, MutableMapping[KT, VT]) A generic version of
Page 1 of 28