From ae1e857e53e0c014da5b717976536be172a37dc1 Mon Sep 17 00:00:00 2001 From: Lee Clemens Date: Mon, 9 Jan 2012 19:17:30 -0500 Subject: [PATCH] Added useDns flag to testcase --- testcases/filtertestcase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/filtertestcase.py b/testcases/filtertestcase.py index 6c29bdd66..4e03b3427 100644 --- a/testcases/filtertestcase.py +++ b/testcases/filtertestcase.py @@ -222,12 +222,12 @@ class GetFailures(unittest.TestCase): class DNSUtilsTests(unittest.TestCase): - def testTextToIp(self): + def testTextToIp(self, useDns): # Bogus addresses which should have no DNS matches bogus = [ 'doh1.2.3.4.buga.xxxxx.yyy.invalid', '1.2.3.4.buga.xxxxx.yyy.invalid', ] for s in bogus: - res = DNSUtils.textToIp(s) + res = DNSUtils.textToIp(s, useDns) self.assertEqual(res, [])