test.support.temp_umask(umask) A context manager that temporarily sets the process umask.
class unittest.mock.NonCallableMagicMock(*args, **kw) A non-callable version of MagicMock. The
assertSetEqual(first, second, msg=None) Tests that two sets are equal. If not, an error message is constructed that lists the
maxDiff This attribute controls the maximum length of diffs output by assert methods that report diffs on failure. It defaults
doctest.register_optionflag(name) Create a new option flag with a given name, and return the new flag’s integer value.
class typing.Union Union type; Union[X, Y] means either X or Y. To define a union
class unittest.TestSuite(tests=()) This class represents an aggregation of individual tests cases and test suites. The class
patch.dict(in_dict, values=(), clear=False, **kwargs) Patch a dictionary, or dictionary like object, and restore the dictionary
run(result=None) Run the test, collecting the result into the TestResult object passed as result. If result
test.support.import_module(name, deprecated=False) This function imports and returns the named module. Unlike a normal import
Page 1 of 28