Browse Source

test ipToName Exception

pull/940/head
Lee Clemens 10 years ago
parent
commit
fef031b3cd
  1. 1
      fail2ban/tests/filtertestcase.py

1
fail2ban/tests/filtertestcase.py

@ -1014,6 +1014,7 @@ class DNSUtilsTests(unittest.TestCase):
def testIpToName(self):
res = DNSUtils.ipToName('66.249.66.1')
self.assertEqual(res, 'crawl-66-249-66-1.googlebot.com')
self.assertRaises(Exception, DNSUtils.ipToName, ['10.0.0.0'])
class JailTests(unittest.TestCase):

Loading…
Cancel
Save