From ff2f5abcb18650eba983c14fb4016c4b3ef06181 Mon Sep 17 00:00:00 2001 From: Daniel Roschka Date: Sat, 30 May 2015 16:42:59 +0200 Subject: [PATCH] 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. --- binder/tests/testHelpers.py | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 binder/tests/testHelpers.py diff --git a/binder/tests/testHelpers.py b/binder/tests/testHelpers.py deleted file mode 100644 index aad301d..0000000 --- a/binder/tests/testHelpers.py +++ /dev/null @@ -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))