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, exception): (source)

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

Parameters
deferred:Deferred[Any]Undocumented
exception:Type[_ExceptionT]Undocumented
Returns
_ExceptionTThe exception instance in the Deferred.