IpToName test case fixed ('66.249.66.1' resp. 'crawl-66-249-66-1.googlebot.com' seems to be unresolvable)

pull/1212/head
sebres 2015-10-07 13:27:45 +02:00
parent 68db52474d
commit 61ac481703
1 changed files with 2 additions and 2 deletions

View File

@ -1025,8 +1025,8 @@ class DNSUtilsTests(unittest.TestCase):
self.assertEqual(res, [])
def testIpToName(self):
res = DNSUtils.ipToName('66.249.66.1')
self.assertEqual(res, 'crawl-66-249-66-1.googlebot.com')
res = DNSUtils.ipToName('8.8.4.4')
self.assertEqual(res, 'google-public-dns-b.google.com')
# invalid ip (TEST-NET-1 according to RFC 5737)
res = DNSUtils.ipToName('192.0.2.0')
self.assertEqual(res, None)