Refs #25183 -- Added debugging for non-deterministic GeoIP test.

This commit is contained in:
Tim Graham 2015-07-28 07:23:58 -04:00
parent 6a46f23957
commit c041671167
1 changed files with 2 additions and 2 deletions

View File

@ -73,9 +73,9 @@ class GeoIPTest(unittest.TestCase):
for query in (fqdn, addr): for query in (fqdn, addr):
for func in (g.country_code, g.country_code_by_addr, g.country_code_by_name): for func in (g.country_code, g.country_code_by_addr, g.country_code_by_name):
self.assertEqual('US', func(query)) self.assertEqual('US', func(query), 'Failed for func %s and query %s' % (func, query))
for func in (g.country_name, g.country_name_by_addr, g.country_name_by_name): for func in (g.country_name, g.country_name_by_addr, g.country_name_by_name):
self.assertEqual('United States', func(query)) self.assertEqual('United States', func(query), 'Failed for func %s and query %s' % (func, query))
self.assertEqual({'country_code': 'US', 'country_name': 'United States'}, self.assertEqual({'country_code': 'US', 'country_name': 'United States'},
g.country(query)) g.country(query))