Browse Source

Changed TLDs to invalid domains, in accordance with RFC 2606

pull/22/merge
Lee Clemens 13 years ago committed by Yaroslav Halchenko
parent
commit
9092a63ce5
  1. 6
      testcases/filtertestcase.py

6
testcases/filtertestcase.py

@ -223,11 +223,11 @@ class GetFailures(unittest.TestCase):
class DNSUtilsTests(unittest.TestCase): class DNSUtilsTests(unittest.TestCase):
def testTextToIp(self): def testTextToIp(self):
# Bogus addresses which should have no DNS matches
bogus = [ bogus = [
'doh1.2.3.4.buga.xxxxx.yyy', 'doh1.2.3.4.buga.xxxxx.yyy.invalid',
'1.2.3.4.buga.xxxxx.yyy', '1.2.3.4.buga.xxxxx.yyy.invalid',
] ]
"""Really bogus addresses which should have no matches"""
for s in bogus: for s in bogus:
res = DNSUtils.textToIp(s) res = DNSUtils.textToIp(s)
self.assertEqual(res, []) self.assertEqual(res, [])

Loading…
Cancel
Save