doctest.register_optionflag(name) Create a new option flag with a given name, and return the new flag’s integer value.
sortTestMethodsUsing Function to be used to compare method names when sorting them in getTestCaseNames() and all
assertRaisesRegex(exception, regex, callable, *args, **kwds) assertRaisesRegex(exception, regex, msg=None) Like
class doctest.DebugRunner(checker=None, verbose=None, optionflags=0) A subclass of DocTestRunner that raises an
unittest.installHandler() Install the control-c handler. When a signal.SIGINT is received (usually in response
find(obj[, name][, module][, globs][, extraglobs]) Return a list of the DocTests that are defined by obj‘s
class typing.Optional Optional type. Optional[X] is equivalent to Union[X
class typing.MutableSequence(Sequence[T]) A generic version of
class typing.Iterator(Iterable[T_co]) A generic version of the
addFailure(test, err) Called when the test case test signals a failure. err is a tuple of the form returned
Page 6 of 28