TST: negative match for DNS lookup test added

pull/483/head
Daniel Black 2013-12-11 10:17:55 +11:00
parent 44bbaebfe5
commit 988e14d8c6
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ class IgnoreIP(unittest.TestCase):
self.filter.addIgnoreIP("www.epfl.ch")
self.assertTrue(self.filter.inIgnoreIPList("128.178.50.12"))
self.assertFalse(self.filter.inIgnoreIPList("128.178.50.11"))
self.assertFalse(self.filter.inIgnoreIPList("128.178.50.13"))
def testIgnoreIPNOK(self):
ipList = "", "999.999.999.999", "abcdef", "192.168.0."