doctest.DocTestRunner.report_unexpected_exception()
  • References/Python/Python/Development Tools

report_unexpected_exception(out, test, example, exc_info) Report that the given example raised an unexpected exception. This

2025-01-10 15:47:30
unittest.TestCase.assertLogs()
  • References/Python/Python/Development Tools

assertLogs(logger=None, level=None) A context manager to test that at least one message is logged on the logger or

2025-01-10 15:47:30
unittest.TestCase.failureException
  • References/Python/Python/Development Tools

failureException This class attribute gives the exception raised by the test method. If a test framework needs to use a specialized

2025-01-10 15:47:30
unittest.TestResult.errors
  • References/Python/Python/Development Tools

errors A list containing 2-tuples of TestCase instances and strings holding formatted tracebacks. Each tuple represents

2025-01-10 15:47:30
unittest.TestCase.assertIsInstance()
  • References/Python/Python/Development Tools

assertIsInstance(obj, cls, msg=None) assertNotIsInstance(obj, cls, msg=None) Test that obj is (or is not)

2025-01-10 15:47:30
doctest.OutputChecker
  • References/Python/Python/Development Tools

class doctest.OutputChecker A class used to check the whether the actual output from a doctest example matches the expected

2025-01-10 15:47:30
unittest.TestCase.longMessage
  • References/Python/Python/Development Tools

longMessage If set to True then any explicit failure message you pass in to the assert methods will

2025-01-10 15:47:30
unittest.TestCase.assertDictEqual()
  • References/Python/Python/Development Tools

assertDictEqual(first, second, msg=None) Test that two dictionaries are equal. If not, an error message is constructed that

2025-01-10 15:47:30
unittest.defaultTestLoader
  • References/Python/Python/Development Tools

unittest.defaultTestLoader Instance of the TestLoader class intended to be shared. If no customization of the

2025-01-10 15:47:30
doctest.DocTest.globs
  • References/Python/Python/Development Tools

globs The namespace (aka globals) that the examples should be run in. This is a dictionary mapping names to values. Any changes

2025-01-10 15:47:30