unittest.TestResult.expectedFailures
  • References/Python/Python/Development Tools

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

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

assertIsNot(first, second, msg=None) Test that first and second evaluate (or don’t evaluate) to the same object

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

class doctest.DocTest(examples, globs, name, filename, lineno, docstring) A collection of doctest examples that should be run

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

loadTestsFromName(name, module=None) Return a suite of all tests cases given a string specifier. The

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

doctest.testmod(m=None, name=None, globs=None, verbose=None, report=True, optionflags=0, extraglobs=None, raise_on_error=False, exclude_empty=False)

2025-01-10 15:47:30
unittest.mock.Mock.configure_mock()
  • References/Python/Python/Development Tools

configure_mock(**kwargs) Set attributes on the mock through keyword arguments. Attributes plus

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

unittest.mock.patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs)

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

doctest.DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None, setUp=None, tearDown=None, checker=None) Convert

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

assertNotAlmostEqual(first, second, places=7, msg=None, delta=None) Test that first and second are approximately

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

unittest.removeResult(result) Remove a registered result. Once a result has been removed then stop() will no longer

2025-01-10 15:47:30