unittest.TestCase.assertLess()
  • References/Python/Python/Development Tools

assertLess(first, second, msg=None) assertLessEqual(first, second, msg=None) Test that first is respectively

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

__class__ Normally the __class__ attribute of an object will return its type. For a mock object with a spec

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

UnexpectedException.exc_info A tuple containing information about the unexpected exception, as returned by

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

class typing.io Wrapper namespace for I/O stream types. This defines the generic type IO[AnyStr]

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

run(result) Run the tests associated with this suite, collecting the result into the test result object passed as result

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

addFailure(test, err) Called when the test case test signals a failure. err is a tuple of the form returned

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

get_examples(string, name='') Extract all doctest examples from the given string, and return them as a list of Example

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

test.support.requires(resource, msg=None) Raise ResourceDenied if resource is not available. msg

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

assertNotIsInstance(obj, cls, msg=None) Test that obj is (or is not) an instance of cls (which can be a class

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

call_args This is either None (if the mock hasn’t been called), or the arguments that the mock was last called

2025-01-10 15:47:30