@pytest.mark.parametrize('status_code,exception', ((400, requests.exceptions.HTTPError), (404, Http404), (500, requests.exceptions.HTTPError)))
def test_handle_cms_response_error(status_code, exception):
    response = core.tests.helpers.create_response(status_code=status_code)
    with pytest.raises(exception):
        helpers.handle_cms_response(response)
@pytest.mark.parametrize('status_code,exception', ((400, requests.exceptions.HTTPError), (404, Http404), (500, requests.exceptions.HTTPError)))
def test_handle_cms_response_error(status_code, exception):
    response = core.tests.helpers.create_response(status_code=status_code)
    with pytest.raises(exception):
        helpers.handle_cms_response(response)