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:
parent
1137b97239
commit
ff2f5abcb1
|
@ -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))
|
|
Loading…
Reference in New Issue