

def test_function_is_called_once_by_default(self, sleep_mock):
    retryer = retrying.retry()

    def func():
        pass
    retryer.run(func)
    self.assertFalse(sleep_mock.called)
    self.assertEqual(retryer.attempt, 1)

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/lib/utils/test_retrying.py RetryTestCase.test_function_is_called_once_by_default/original