mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
test ipToName Exception
This commit is contained in:
parent
4cfbb840ad
commit
fef031b3cd
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue