PyDocs

Nav

Development Tools

OutputChecker

doctest

class (source)
A class used to check 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.
Members of OutputChecker

c

check_output
Return True iff the actual output from an example (`got`) matches the expected output (`want`).

o

output_difference
Return a string describing the differences between the expected output for a given example (`example`) and the actual output (`got`).
0 Examples
No examples for doctest/OutputChecker.
See Also
No see-alsos for doctest/OutputChecker
0 Notes
No notes for OutputChecker