class doctest.OutputChecker
A class used to check the whether the actual output from a doctest example matches the expected output. OutputChecker defines two methods: check_output(), which compares a given pair of outputs, and returns true if they match; and output_difference(), which returns a string describing the differences between two outputs.
OutputChecker defines the following methods:
check_output(want, got, optionflags)
Return True iff the actual output from an example (got) matc