Going red with non empty request string

This commit is contained in:
Mario de Frutos
2018-01-31 12:25:18 +01:00
parent 2f8dbbb5dc
commit 2bbd6bac91

View File

@@ -131,6 +131,12 @@ class HereMapsGeocoderTestCase(unittest.TestCase):
result = self.geocoder.geocode()
self.assertEqual(result, [])
def test_geocode_address_with_non_empty_string_params(self, req_mock):
req_mock.register_uri('GET', HereMapsGeocoder.PRODUCTION_GEOCODE_JSON_URL,
text=self.GOOD_RESPONSE)
result = self.geocoder.geocode(searchtext=" ", city=None, state=" ", country=" ")
self.assertEqual(result, [])
def test_geocode_address_empty_response(self, req_mock):
req_mock.register_uri('GET', HereMapsGeocoder.PRODUCTION_GEOCODE_JSON_URL,
text=self.EMPTY_RESPONSE)