def METHOD_NAME(retry_middleware_class):
    # base checks
    retry_middleware = retry_middleware_class(make_request=Mock(), w3=Mock())
    assert retry_middleware.is_request_result_retry(result=RPC_TOO_MANY_REQUESTS)
    http_error = HTTPError(response=Mock(status_code=429))
    assert retry_middleware.is_request_result_retry(result=http_error)
    assert not retry_middleware.is_request_result_retry(result=RPC_SUCCESSFUL_RESPONSE)