Skip to content

Commit

Permalink
filtertestcase fixes from yarikoptic
Browse files Browse the repository at this point in the history
  • Loading branch information
leeclemens committed Jan 11, 2012
1 parent 6ce9d04 commit 7957fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testcases/filtertestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ def testUseDns(self):
def testTextToIp(self):
# Test hostnames
hostnames = [
'www.example.com'
'www.example.com',
'doh1.2.3.4.buga.xxxxx.yyy.invalid',
'1.2.3.4.buga.xxxxx.yyy.invalid',
]
for s in hostnames:
res = DNSUtils.textToIp(s, 'yes')
if s is 'www.example.com':
if s == 'www.example.com':
self.assertEqual(res, ['192.0.43.10'])
else:
self.assertEqual(res, [])

0 comments on commit 7957fbe

Please sign in to comment.