From c0416711672ab289260c4a00a0024da862140027 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 28 Jul 2015 07:23:58 -0400 Subject: [PATCH] Refs #25183 -- Added debugging for non-deterministic GeoIP test. --- tests/gis_tests/test_geoip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gis_tests/test_geoip.py b/tests/gis_tests/test_geoip.py index bf16abb930..7fe71fe84f 100644 --- a/tests/gis_tests/test_geoip.py +++ b/tests/gis_tests/test_geoip.py @@ -73,9 +73,9 @@ class GeoIPTest(unittest.TestCase): for query in (fqdn, addr): 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): - 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'}, g.country(query))