def test_response_raise_for_status_ok():
    response = HTTPResponse(status=200)
    response.raise_for_status()
def test_response_raise_for_status_error():
    response = HTTPResponse(status=500)
    with pytest.raises(HTTPError):
        response.raise_for_status()