'When passed a L{Deferred} which currently has a L{Failure} result,
L{SynchronousTestCase.assertNoResult} changes the result of the
L{Deferred} to a success.'

def test_assertNoResultSwallowsImmediateFailure(self):

    d = fail(self.failure)
    try:
        self.assertNoResult(d)
    except self.failureException:
        pass
    self.assertEqual(None, self.successResultOf(d))
