class documentation
class ImmediateFailureMixin:
Known subclasses: twisted.test.test_defer.DeferredTests
, twisted.test.test_defer.OtherPrimitivesTests
, twisted.test.test_defer.TimeoutErrorTests
Add additional assertion methods.
Method | assert |
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 | |
_ExceptionT | The exception instance in the Deferred. |