test.support.is_resource_enabled()
  • References/Python/Python/Development Tools

test.support.is_resource_enabled(resource) Return True if resource is enabled and available. The list

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

addSubTest(test, subtest, outcome) Called when a subtest finishes. test is the test case corresponding to the test

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

__dir__() Mock objects limit the results of dir(some_mock) to useful results. For mocks with a spec

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

lineno The line number within filename where this DocTest begins, or None if the line

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

report_success(out, test, example, got) Report that the given example ran successfully. This method is provided to allow subclasses

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

called A boolean representing whether or not the mock object has been called:

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

assertIsNotNone(expr, msg=None) Test that expr is (or is not) None.

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

assert_any_call(*args, **kwargs) assert the mock has been called with the specified arguments. The

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

assertListEqual(first, second, msg=None) assertTupleEqual(first, second, msg=None) Tests that two lists or tuples

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

mock_calls mock_calls records all calls to the mock object, its methods, magic methods and return

2025-01-10 15:47:30