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

@test.support.run_with_locale(catstr, *locales) A decorator for running a function in a different locale, correctly resetting

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

test.support.findfile(filename, subdir=None) Return the path to the file named filename. If no match is found filename

2025-01-10 15:47:30
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