Permalink
Browse files

filtertestcase fixes from yarikoptic

  • Loading branch information...
1 parent 6ce9d04 commit 7957fbe821b0cebf162f64b4627a345db551c2d0 @leeclemens leeclemens committed Jan 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 testcases/filtertestcase.py
@@ -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.