Browse Source

move test to more sensible function name

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

6
fail2ban/tests/filtertestcase.py

@ -996,8 +996,6 @@ class DNSUtilsTests(unittest.TestCase):
self.assertEqual(res, ['93.184.216.34'])
res = DNSUtils.textToIp('www.example.com', 'yes')
self.assertEqual(res, ['93.184.216.34'])
res = DNSUtils.ipToName('66.249.66.1')
self.assertEqual(res, 'crawl-66-249-66-1.googlebot.com')
def testTextToIp(self):
# Test hostnames
@ -1013,6 +1011,10 @@ class DNSUtilsTests(unittest.TestCase):
else:
self.assertEqual(res, [])
def testIpToName(self):
res = DNSUtils.ipToName('66.249.66.1')
self.assertEqual(res, 'crawl-66-249-66-1.googlebot.com')
class JailTests(unittest.TestCase):
def testSetBackend_gh83(self):

Loading…
Cancel
Save