summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRyan Verner <ryan.verner@gmail.com>2017-10-25 19:30:42 +1100
committerTim Graham <timograham@gmail.com>2017-10-25 10:07:37 -0400
commit9473a8481a29ff6272664b19eeb91bfc3640f705 (patch)
treee62cd23e0eb437c830499e8f858080f3e668dac4 /tests
parentd1317edad0a2908574d2a5b07383bfe58884628c (diff)
Fixed #28740 -- Added 'continent_code' and 'continent_name' in GeoIP2.city() dict.
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/test_geoip2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gis_tests/test_geoip2.py b/tests/gis_tests/test_geoip2.py
index f28f8da1e1..a2f5a08dd2 100644
--- a/tests/gis_tests/test_geoip2.py
+++ b/tests/gis_tests/test_geoip2.py
@@ -115,6 +115,8 @@ class GeoIPTest(unittest.TestCase):
# City information dictionary.
d = g.city(query)
+ self.assertEqual('NA', d['continent_code'])
+ self.assertEqual('North America', d['continent_name'])
self.assertEqual('US', d['country_code'])
self.assertEqual('Houston', d['city'])
self.assertEqual('TX', d['region'])