Remove tests for checking DNS resolution

The tests checking the DNS resolution aren't reliable as they rely on specific
behavior of the DNS resolution on the local system. As they are reliable it
makes no sense to keep them as they are currently.
This commit is contained in:
Daniel Roschka 2015-05-30 16:42:59 +02:00
parent 1137b97239
commit ff2f5abcb1
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))