assertLess(first, second, msg=None) assertLessEqual(first, second, msg=None) Test that first is respectively
__class__ Normally the __class__ attribute of an object will return its type. For a mock object with a spec
UnexpectedException.exc_info A tuple containing information about the unexpected exception, as returned by
class typing.io Wrapper namespace for I/O stream types. This defines the generic type IO[AnyStr]
run(result) Run the tests associated with this suite, collecting the result into the test result object passed as result
addFailure(test, err) Called when the test case test signals a failure. err is a tuple of the form returned
get_examples(string, name='') Extract all doctest examples from the given string, and return them as a list of Example
test.support.requires(resource, msg=None) Raise ResourceDenied if resource is not available. msg
assertNotIsInstance(obj, cls, msg=None) Test that obj is (or is not) an instance of cls (which can be a class
call_args This is either None (if the mock hasn’t been called), or the arguments that the mock was last called
Page 11 of 28