testIPAddr_CompareDNS: add missing network constraint (gh-2596)

pull/2605/head
sebres 2020-01-13 12:37:19 +01:00
parent b25d8565fc
commit b158f83aa3
1 changed files with 1 additions and 0 deletions

View File

@ -2064,6 +2064,7 @@ class DNSUtilsNetworkTests(unittest.TestCase):
)
def testIPAddr_CompareDNS(self):
unittest.F2B.SkipIfNoNetwork()
ips = IPAddr('example.com')
self.assertTrue(IPAddr("93.184.216.34").isInNet(ips))
self.assertTrue(IPAddr("2606:2800:220:1:248:1893:25c8:1946").isInNet(ips))