report_unexpected_exception(out, test, example, exc_info) Report that the given example raised an unexpected exception. This
assertLogs(logger=None, level=None) A context manager to test that at least one message is logged on the logger or
failureException This class attribute gives the exception raised by the test method. If a test framework needs to use a specialized
errors A list containing 2-tuples of TestCase instances and strings holding formatted tracebacks. Each tuple represents
assertIsInstance(obj, cls, msg=None) assertNotIsInstance(obj, cls, msg=None) Test that obj is (or is not)
class doctest.OutputChecker A class used to check the whether the actual output from a doctest example matches the expected
longMessage If set to True then any explicit failure message you pass in to the assert methods will
assertDictEqual(first, second, msg=None) Test that two dictionaries are equal. If not, an error message is constructed that
unittest.defaultTestLoader Instance of the TestLoader class intended to be shared. If no customization of the
globs The namespace (aka globals) that the examples should be run in. This is a dictionary mapping names to values. Any changes
Page 18 of 28