920
920
self.fail("%r is an instance of %s rather than %s" % (
921
921
obj, obj.__class__, kls))
923
def expectFailure(self, reason, test, *args, **kwargs):
923
def expectFailure(self, reason, assertion, *args, **kwargs):
924
924
"""Invoke a test, expecting it to fail for the given reason.
926
929
Intended to be used with a callable that raises AssertionError as the
929
932
Raises KnownFailure if the test fails. Raises AssertionError if the