fix test for invalid IP

pull/940/head
Lee Clemens 2015-02-02 14:03:35 -05:00
parent fef031b3cd
commit eb17b68641
1 changed files with 2 additions and 1 deletions

View File

@ -1014,7 +1014,8 @@ class DNSUtilsTests(unittest.TestCase):
def testIpToName(self):
res = DNSUtils.ipToName('66.249.66.1')
self.assertEqual(res, 'crawl-66-249-66-1.googlebot.com')
self.assertRaises(Exception, DNSUtils.ipToName, ['10.0.0.0'])
res = DNSUtils.ipToName('10.0.0.0')
self.assertEqual(res, None)
class JailTests(unittest.TestCase):