Пример #1
0
 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')
Пример #2
0
 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')
Пример #3
0
 def test_geocode_compute_key__empty(self):
     """Testing _geocode_compute_key, with empty argument."""
     result = _geocode_compute_key('')
     self.assertEqual(result, '')
Пример #4
0
 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")
Пример #5
0
 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")
Пример #6
0
 def test_geocode_compute_key__empty(self):
     """Testing _geocode_compute_key, with empty argument."""
     result = _geocode_compute_key("")
     self.assertEqual(result, "")