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.DocTestFinder.find()
  • References/Python/Python/Development Tools

find(obj[, name][, module][, globs][, extraglobs]) Return a list of the DocTests that are defined by obj‘s

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
typing.Iterator
  • References/Python/Python/Development Tools

class typing.Iterator(Iterable[T_co]) A generic version of the

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

class test.support.TransientResource(exc, **kwargs) Instances are a context manager that raises ResourceDenied

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

assertEqual(first, second, msg=None) Test that first and second are equal. If the values do not compare equal

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

shortDescription() Returns a description of the test, or None if no description has been provided. The default

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

getTestCaseNames(testCaseClass) Return a sorted sequence of method names found within testCaseClass; this should be

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

id() Return a string identifying the specific test case. This is usually the full name of the test method, including the module

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

defaultTestResult() Return an instance of the test result class that should be used for this test case class (if no other result

2025-01-10 15:47:30