'L{SynchronousTestCase.failureResultOf} raises
L{SynchronousTestCase.failureException} when called with a L{Deferred}
with a failure type that was not expected.'

def test_failureResultOfWithWrongFailure(self):

    self.assertRaises(self.failureException, self.failureResultOf, fail(self.failure), KeyError)
