コード例 #1
0
ファイル: test_geocode.py プロジェクト: fna/django-hud
 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
ファイル: test_geocode.py プロジェクト: fna/django-hud
 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
ファイル: test_geocode.py プロジェクト: fna/django-hud
 def test_geocode_compute_key__empty(self):
     """Testing _geocode_compute_key, with empty argument."""
     result = _geocode_compute_key('')
     self.assertEqual(result, '')
コード例 #4
0
ファイル: test_geocode.py プロジェクト: ielerol/django-hud
 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
ファイル: test_geocode.py プロジェクト: ielerol/django-hud
 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
ファイル: test_geocode.py プロジェクト: ielerol/django-hud
 def test_geocode_compute_key__empty(self):
     """Testing _geocode_compute_key, with empty argument."""
     result = _geocode_compute_key("")
     self.assertEqual(result, "")