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