def assertFailure(self, deferred, exception):
        return assert_fails_with(deferred, exception)
``twisted.trial.unittest.TestCase.assertFailure``-alike.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/testtools/_base.py/AsyncTestCase.assertFailure