Browse Source

Added useDns flag to testcase

pull/27/head
Lee Clemens 13 years ago
parent
commit
11ad2b6125
  1. 4
      testcases/filtertestcase.py

4
testcases/filtertestcase.py

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

Loading…
Cancel
Save