def METHOD_NAME(self, Class):
    class CustomError(Exception):
        pass
    retry_on_error = [ConnectionError, TimeoutError, CustomError]
    c = Class(retry_on_error=retry_on_error)
    assert c.retry_on_error == retry_on_error
    assert isinstance(c.retry, Retry)
    assert c.retry._retries == 1
    assert set(c.retry._supported_errors) == set(retry_on_error)