Lines Matching refs:ip3

960         ip3 = ipaddress.IPv4Address('10.10.10.12')
963 self.assertEqual(list(ipaddress._find_address_range([ip1, ip3])),
964 [(ip1, ip1), (ip3, ip3)])
965 self.assertEqual(list(ipaddress._find_address_range([ip1, ip2, ip3])),
966 [(ip1, ip3)])
1370 ip3 = ipaddress.IPv4Address('1.1.1.2')
1376 [ip1, ip2, ip3, ip4, ip5, ip6])
1384 ip3 = ipaddress.IPv4Address('1.1.1.2')
1389 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4])
1396 ip3 = ipaddress.IPv4Network('1.1.2.0/24')
1403 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4, ip5,
1427 ip3 = ipaddress.IPv6Network('2001::/96')
1429 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1430 self.assertEqual(list(collapsed), [ip3])
1550 ip3 = ipaddress.IPv4Network('1.1.2.0/24')
1552 self.assertTrue(ip1 < ip3)
1553 self.assertTrue(ip3 > ip2)
1561 self.assertEqual(ip1.compare_networks(ip3), -1)
1562 self.assertEqual(ip3.compare_networks(ip1), 1)
1563 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
1567 ip3 = ipaddress.IPv6Network('2001:ffff:2000::/96')
1569 self.assertTrue(ip1 < ip3)
1570 self.assertTrue(ip3 > ip2)
1571 self.assertEqual(ip1.compare_networks(ip3), -1)
1572 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
1595 ip3 = ipaddress.ip_network('10.1.3.0/25')
1596 self.assertTrue(ip2 < ip3)
1597 self.assertFalse(ip3 < ip2)
1598 self.assertFalse(ip2 > ip3)
1599 self.assertTrue(ip3 > ip2)
1604 ip3 = ipaddress.ip_network('10.10.10.2/31')
1606 sorted = [ip1, ip2, ip3, ip4]
1607 unsorted = [ip2, ip4, ip1, ip3]
1610 unsorted = [ip4, ip1, ip3, ip2]