@mock.patch(_GEOCODE)
def test_valueerror_raised_when_invalid_query_method_passed(self, mocked_geocode, test_dataframe):
    with pytest.raises(ValueError):
        geocode_batch_dataframe(test_dataframe, query_method='cats')
    with pytest.raises(ValueError):
        geocode_batch_dataframe(test_dataframe, query_method='test')
    with pytest.raises(ValueError):
        geocode_batch_dataframe(test_dataframe, query_method=1)
@mock.patch(_GEOCODE)
def test_valueerror_raised_when_invalid_query_method_passed(self, mocked_geocode, test_dataframe):
    with pytest.raises(ValueError):
        geocode_batch_dataframe(test_dataframe, query_method='cats')
    with pytest.raises(ValueError):
        geocode_batch_dataframe(test_dataframe, query_method='test')
    with pytest.raises(ValueError):
        geocode_batch_dataframe(test_dataframe, query_method=1)