def METHOD_NAME(basic_rest_stream, status_code, reason, expectation):
    fake_response = requests.Response()
    fake_response.status_code = status_code
    fake_response.reason = reason
    with expectation:
        basic_rest_stream.validate_response(fake_response)