

def test_retry_call():
    f_mock = MagicMock(side_effect=RuntimeError)
    tries = 2
    try:
        retry_call(f_mock, exceptions=RuntimeError, tries=tries)
    except RuntimeError:
        pass
    assert (f_mock.call_count == tries)

dataset/ETHPy150Open invl/retry/retry/tests/test_retry.py test_retry_call/original