Lines Matching refs:ip2

959         ip2 = ipaddress.IPv4Address('10.10.10.11')
965 self.assertEqual(list(ipaddress._find_address_range([ip1, ip2, ip3])),
1369 ip2 = ipaddress.IPv4Address('1.1.1.1')
1376 [ip1, ip2, ip3, ip4, ip5, ip6])
1383 ip2 = ipaddress.IPv4Address('1.1.1.1')
1389 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4])
1395 ip2 = ipaddress.IPv4Network('1.1.1.0/24')
1403 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4, ip5,
1410 collapsed = ipaddress.collapse_addresses([ip1, ip2])
1426 ip2 = ipaddress.IPv6Network('2001::/120')
1429 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1441 for ip1, ip2 in addr_tuples:
1443 [ip1, ip2])
1450 ip2 = ipaddress.ip_address('1.1.1.255')
1465 self.assertEqual(list(summarize(ip1, ip2))[0],
1468 ip2 = ipaddress.ip_address('1.1.1.8')
1469 self.assertEqual(list(summarize(ip1, ip2)),
1474 ip2 = ipaddress.IPv4Address(ipaddress.IPv4Address._ALL_ONES)
1476 list(summarize(ip1, ip2)))
1479 ip2 = ipaddress.ip_address('1:ffff:ffff:ffff:ffff:ffff:ffff:ffff')
1481 self.assertEqual(list(summarize(ip1, ip2))[0],
1484 ip2 = ipaddress.ip_address('2::')
1485 self.assertEqual(list(summarize(ip1, ip2)),
1549 ip2 = ipaddress.IPv4Network('1.1.1.0/32')
1553 self.assertTrue(ip3 > ip2)
1558 self.assertEqual(ip1.compare_networks(ip2), -1)
1559 self.assertEqual(ip2.compare_networks(ip1), 1)
1566 ip2 = ipaddress.IPv6Network('2001:2001::/96')
1570 self.assertTrue(ip3 > ip2)
1590 ip2 = ipaddress.ip_network('10.1.3.0/24')
1591 self.assertTrue(ip1 < ip2)
1592 self.assertFalse(ip2 < ip1)
1593 self.assertFalse(ip1 > ip2)
1594 self.assertTrue(ip2 > ip1)
1596 self.assertTrue(ip2 < ip3)
1597 self.assertFalse(ip3 < ip2)
1598 self.assertFalse(ip2 > ip3)
1599 self.assertTrue(ip3 > ip2)
1603 ip2 = ipaddress.ip_network('10.10.10.0')
1606 sorted = [ip1, ip2, ip3, ip4]
1607 unsorted = [ip2, ip4, ip1, ip3]
1610 unsorted = [ip4, ip1, ip3, ip2]
1615 self.assertIs(ip2.__lt__(ipaddress.ip_address('10.10.10.0')),
1889 ip2 = ipaddress.ip_address('1::')
1894 dummy[ip2] = None
1896 self.assertIn(ip2, dummy)