attach_mock(mock, attribute) Attach a mock as an attribute of this one, replacing its name and parent. Calls to the attached
check_output(want, got, optionflags) Return True iff the actual output from an example (got) matches the
shouldStop Set to True when the execution of tests should stop by stop().
exception doctest.UnexpectedException(test, example, exc_info) An exception raised by DocTestRunner to signal that
class typing.Set(set, MutableSet[T]) A generic version of
assertGreaterEqual(first, second, msg=None) assertLess(first, second, msg=None) assertLessEqual(first, second
doctest.run_docstring_examples(f, globs, verbose=False, name="NoName", compileflags=None, optionflags=0) Test examples associated
shortDescription() Returns a description of the test, or None if no description has been provided. The default
class doctest.DocTestRunner(checker=None, verbose=None, optionflags=0) A processing class used to execute and verify the interactive
run(test, compileflags=None, out=None, clear_globs=True) Run the examples in test (a DocTest object),
Page 15 of 28