Skip to content

Commit

Permalink
improves testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Sep 21, 2020
1 parent 2997d67 commit 8566945
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_locator.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ def testExamples(self):
'''
test examples
'''
examples=['Amsterdam, Netherlands', 'Vienna, Austria','Vienna IL','Paris - Texas', 'Paris TX']
countries=['NL','AT','US','US','US']
examples=['Amsterdam, Netherlands', 'Vienna, Austria','Vienna IL','Paris - Texas', 'Paris TX',
'Austin, TX','Austin Texas','Auckland, New Zealand']
countries=['NL','AT','US','US','US','US','US','NZ']
for index,example in enumerate(examples):
city=geograpy.locate(example)
if self.debug:
print(city)
print("%22s->%s" % (example,city))
self.assertEquals(countries[index],city.country.iso)


Expand Down

0 comments on commit 8566945

Please sign in to comment.