@mock.patch(GEOCODE)
def test_geocode_wrapper_rejects_both_q_and_kwargs_supplied(self, mocked_geocode):
    with pytest.raises(ValueError) as e:
        _geocode(city='London', q='somewhere')
    assert ('Supply either q OR other query parameters, they cannot be combined.' in str(e.value))
@mock.patch(GEOCODE)
def test_geocode_wrapper_rejects_both_q_and_kwargs_supplied(self, mocked_geocode):
    with pytest.raises(ValueError) as e:
        _geocode(city='London', q='somewhere')
    assert ('Supply either q OR other query parameters, they cannot be combined.' in str(e.value))