localhost wont always have an IPv6 address assigned to it

This commit is contained in:
jeffrey forman 2015-04-04 20:33:53 -04:00
parent 12654bd3a5
commit 880eee067d
1 changed files with 1 additions and 1 deletions

View File

@ -8,5 +8,5 @@ class HelperTests(TestCase):
self.assertEqual([['Error', u'Unable to resolve foobar.doesnotexist.local: [Errno -2] Name or service not known']],
response)
response = helpers.ip_info("localhost")
self.assertEqual([['IPv4 (1)', u'127.0.0.1'], ['IPv6 (1)', u'::1']],
self.assertEqual([['IPv4 (1)', u'127.0.0.1']],
sorted(response))