Commit d9256fae by William Tisäter

Fix country_code_by_addr test

parent 166032b4
...@@ -29,8 +29,8 @@ class TestGeoIPCountryFunctions(unittest.TestCase): ...@@ -29,8 +29,8 @@ class TestGeoIPCountryFunctions(unittest.TestCase):
self.assertEqual(gb_code, self.gb_code) self.assertEqual(gb_code, self.gb_code)
def testCountryCodeByAddr(self): def testCountryCodeByAddr(self):
us_code = self.gi.country_code_by_name(self.us_ip) us_code = self.gi.country_code_by_addr(self.us_ip)
gb_code = self.gi.country_code_by_name(self.gb_ip) gb_code = self.gi.country_code_by_addr(self.gb_ip)
self.assertEqual(us_code, self.us_code) self.assertEqual(us_code, self.us_code)
self.assertEqual(gb_code, self.gb_code) self.assertEqual(gb_code, self.gb_code)
......
...@@ -30,6 +30,3 @@ class TestGeoIPOrgFunctions(unittest.TestCase): ...@@ -30,6 +30,3 @@ class TestGeoIPOrgFunctions(unittest.TestCase):
self.assertEqual(gb_org, self.gb_org) self.assertEqual(gb_org, self.gb_org)
self.assertEqual(us_org, self.us_org) self.assertEqual(us_org, self.us_org)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment