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
doctest.DocTest.examples
  • References/Python/Python/Development Tools

examples A list of Example objects encoding the individual interactive Python examples that should be run by this

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

reset_mock() The reset_mock method resets all the call attributes on a mock object:

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

startTestRun() Called once before any tests are executed.

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

call_count An integer telling you how many times the mock object has been called:

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

class unittest.TextTestResult(stream, descriptions, verbosity) A concrete implementation of TestResult used by

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

source A string containing the example’s source code. This source code consists of a single Python statement, and always ends

2025-01-10 15:47:30
test.support.run_unittest()
  • References/Python/Python/Development Tools

test.support.run_unittest(*classes) Execute

2025-01-10 15:47:30
typing.Generator
  • References/Python/Python/Development Tools

class typing.Generator(Iterator[T_co], Generic[T_co, T_contra, V_co]) A generator can be annotated by the generic type

2025-01-10 15:47:30