@mock.patch(GEOCODE)
def test_geocode_wrapper_rejects_invalid_query_parameters(self, mocked_geocode):
    with pytest.raises(ValueError) as e:
        _geocode(cat='dog', city='Nice')
    assert ('Invalid query parameter' in str(e.value))
@mock.patch(GEOCODE)
def test_geocode_wrapper_rejects_invalid_query_parameters(self, mocked_geocode):
    with pytest.raises(ValueError) as e:
        _geocode(cat='dog', city='Nice')
    assert ('Invalid query parameter' in str(e.value))