move test to more sensible function name

pull/940/head
Lee Clemens 2015-02-02 13:40:56 -05:00
parent 0463518d28
commit 4cfbb840ad
1 changed files with 4 additions and 2 deletions

View File

@ -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):