class typing.Optional Optional type. Optional[X] is equivalent to Union[X
class typing.List(list, MutableSequence[T]) Generic version of
testsRun The total number of tests run so far.
output_difference(example, got, optionflags) Return a string describing the differences between the expected output for a given
DocTestFailure.got The example’s actual output.
get_examples(string, name='') Extract all doctest examples from the given string, and return them as a list of Example
discover(start_dir, pattern='test*.py', top_level_dir=None) Find all the test modules by recursing into subdirectories from
addSuccess(test) Called when the test case test succeeds. The default implementation
run(test) This method is the main public interface to the TextTestRunner. This method takes a TestSuite
failfast If set to true stop() will be called on the first failure or error, halting the test run.
Page 8 of 28