doctest.script_from_examples(s) Convert text with examples to a script. Argument s
class doctest.DocTestRunner(checker=None, verbose=None, optionflags=0) A processing class used to execute and verify the interactive
exception doctest.UnexpectedException(test, example, exc_info) An exception raised by DocTestRunner to signal that
_makeResult() This method returns the instance of TestResult used by run(). It is not intended to
defaultTestResult() Return an instance of the test result class that should be used for this test case class (if no other result
typing.NamedTuple(typename, fields) Typed version of namedtuple. Usage:
loadTestsFromNames(names, module=None) Similar to loadTestsFromName(), but takes a sequence of names rather than
class typing.AbstractSet(Sized, Iterable[T_co], Container[T_co]) A generic version of
check_output(want, got, optionflags) Return True iff the actual output from an example (got) matches the
test.support.captured_stderr() A context managers that temporarily replaces the named stream with
Page 13 of 28