'If no value is given for the ``should_retry`` parameter, if the wrapped
method raises an exception it is called again after a short delay.
This is repeated using the elements of ``retry_some_times`` as the
sleep times and stops when there are no more elements.'

def test_default_retry(self):

    time = []
    sleep = time.append
    counter = iter(count())
    wrapper = with_retry(partial(self.always_failing, counter), sleep=sleep)
    self.assertRaises(CustomException, wrapper)
    self.expectThat(next(counter), Equals((EXPECTED_RETRY_SOME_TIMES_RETRIES + 1)))
    self.expectThat(sum(time), MatchesPredicate((lambda t: (119.8 <= t <= 120.0)), 'Time    value    %r    too    far    from    expected    value    119.9'))
