class documentation

Add additional assertion methods.

Method assertImmediateFailure Assert that the given Deferred current result is a Failure with the given exception.
def assertImmediateFailure(self, deferred: Deferred[Any], exception: type[_ExceptionT]) -> _ExceptionT: ΒΆ

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

Returns
_ExceptionTThe exception instance in the Deferred.