twisted.trial.unittest.TestCase.assertFailure(self, deferred, *expectedFailures)
method documentationtwisted.trial.unittest.TestCase
View Source
Fail if deferred
does not errback with one of expectedFailures
. Returns the original Deferred with callbacks added. You will need to return this Deferred from your test case.