__class__ Normally the __class__ attribute of an object will return its type. For a mock object with a spec
find(obj[, name][, module][, globs][, extraglobs]) Return a list of the DocTests that are defined by obj‘s
test.support.requires(resource, msg=None) Raise ResourceDenied if resource is not available. msg
class typing.Iterator(Iterable[T_co]) A generic version of the
class test.support.TransientResource(exc, **kwargs) Instances are a context manager that raises ResourceDenied
assertEqual(first, second, msg=None) Test that first and second are equal. If the values do not compare equal
shortDescription() Returns a description of the test, or None if no description has been provided. The default
getTestCaseNames(testCaseClass) Return a sorted sequence of method names found within testCaseClass; this should be
id() Return a string identifying the specific test case. This is usually the full name of the test method, including the module
defaultTestResult() Return an instance of the test result class that should be used for this test case class (if no other result
Page 12 of 28