'If the function returns a successful value immediately, then
``retry_failure`` returns a deferred that has already fired with that
value.'

def test_immediate_success(self):

    result = object()
    def function():
        return result
    clock = Clock()
    d = retry_failure(clock, function)
    self.assertEqual(self.successResultOf(d), result)
