Known subclasses: twisted.test.test_defer.DeferredTests, twisted.test.test_defer.OtherPrimitivesTests, twisted.test.test_defer.TimeoutErrorTests

Add additional assertion methods.

Method assertImmediateFailure Assert that the given Deferred current result is a Failure with the given exception.
def assertImmediateFailure(self, deferred, exception):

Assert that the given Deferred current result is a Failure with the given exception.

ReturnsThe exception instance in the Deferred.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.