Esempio n. 1
0
 def test_extract_coordinates_pass_3(self):
     original_string = '53.41058,-2.97794 Liverpool'
     string = 'Liverpool'
     coordinates = (53.41058, -2.97794)
     result = MatchBlock.extract_coordinates(original_string)
     self.assertEqual((string, coordinates), result)
Esempio n. 2
0
 def test_extract_coordinates_pass_5(self):
     original_string = '  59.911491 ,  10.757933  '
     string = ''
     coordinates = (59.911491, 10.757933)
     result = MatchBlock.extract_coordinates(original_string)
     self.assertEqual((string, coordinates), result)
Esempio n. 3
0
 def test_extract_coordinates_pass_2(self):
     original_string = 'Liverpool'
     string = 'Liverpool'
     coordinates = None
     result = MatchBlock.extract_coordinates(original_string)
     self.assertEqual((string, coordinates), result)