async def METHOD_NAME(self, retries: int):
    backoff = BackoffMock()
    retry = Retry(backoff, retries)
    with pytest.raises(ConnectionError):
        await retry.call_with_retry(self._do, self._fail)
    assert self.actual_attempts == 1 + retries
    assert self.actual_failures == 1 + retries
    assert backoff.reset_calls == 1
    assert backoff.calls == retries