def test_geocode_compute_key__address(self): """Testing _geocode_compute_key, with an address.""" result = _geocode_compute_key('123 Some str, Washington DC, 20005') self.assertEqual(result, '123 NONE SOME ST.|WASHINGTON,DC|20005')
def test_geocode_compute_key__zipcode(self): """Testing _geocode_compute_key, zipcode as argument.""" result = _geocode_compute_key('20005') self.assertEqual(result, '20005') result = _geocode_compute_key('20005-1999') self.assertEqual(result, '20005-1999')
def test_geocode_compute_key__empty(self): """Testing _geocode_compute_key, with empty argument.""" result = _geocode_compute_key('') self.assertEqual(result, '')
def test_geocode_compute_key__address(self): """Testing _geocode_compute_key, with an address.""" result = _geocode_compute_key("123 Some str, Washington DC, 20005") self.assertEqual(result, "123 NONE SOME ST.|WASHINGTON,DC|20005")
def test_geocode_compute_key__zipcode(self): """Testing _geocode_compute_key, zipcode as argument.""" result = _geocode_compute_key("20005") self.assertEqual(result, "20005") result = _geocode_compute_key("20005-1999") self.assertEqual(result, "20005-1999")
def test_geocode_compute_key__empty(self): """Testing _geocode_compute_key, with empty argument.""" result = _geocode_compute_key("") self.assertEqual(result, "")