Skip to content

Commit

Permalink
move test to more sensible function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Clemens committed Feb 2, 2015
1 parent 0463518 commit 4cfbb84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fail2ban/tests/filtertestcase.py
Expand Up @@ -996,8 +996,6 @@ def testUseDns(self):
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
Expand All @@ -1013,6 +1011,10 @@ def testTextToIp(self):
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):
Expand Down

0 comments on commit 4cfbb84

Please sign in to comment.