Merge pull request #34 from Dunedan/remove-dns-resolv-test

Remove tests for checking DNS resolution
This commit is contained in:
Jeffrey Forman 2015-06-03 19:59:12 -04:00
commit 6c048eed77
1 changed files with 0 additions and 12 deletions

View File

@ -1,12 +0,0 @@
from django.test import TestCase
from binder import models, helpers
class HelperTests(TestCase):
def test_ipinfo_ResolutionFail(self):
response = helpers.ip_info("foobar.doesnotexist.local")
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']],
sorted(response))