• Home
  • Raw
  • Download

Lines Matching refs:ip3

1008         ip3 = ipaddress.IPv4Address('10.10.10.12')
1011 self.assertEqual(list(ipaddress._find_address_range([ip1, ip3])),
1012 [(ip1, ip1), (ip3, ip3)])
1013 self.assertEqual(list(ipaddress._find_address_range([ip1, ip2, ip3])),
1014 [(ip1, ip3)])
1424 ip3 = ipaddress.IPv4Address('1.1.1.2')
1430 [ip1, ip2, ip3, ip4, ip5, ip6])
1439 ip3 = ipaddress.IPv4Address('1.1.1.2')
1442 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4])
1449 ip3 = ipaddress.IPv4Network('1.1.2.0/24')
1458 [ip1, ip2, ip3, ip4, ip5, ip6])
1482 ip3 = ipaddress.IPv6Network('2001::/96')
1484 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1485 self.assertEqual(list(collapsed), [ip3])
1603 ip3 = ipaddress.IPv4Network('1.1.2.0/24')
1605 self.assertTrue(ip1 < ip3)
1606 self.assertTrue(ip3 > ip2)
1614 self.assertEqual(ip1.compare_networks(ip3), -1)
1615 self.assertEqual(ip3.compare_networks(ip1), 1)
1616 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
1620 ip3 = ipaddress.IPv6Network('2001:ffff:2000::/96')
1622 self.assertTrue(ip1 < ip3)
1623 self.assertTrue(ip3 > ip2)
1624 self.assertEqual(ip1.compare_networks(ip3), -1)
1625 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
1648 ip3 = ipaddress.ip_network('10.1.3.0/25')
1649 self.assertTrue(ip2 < ip3)
1650 self.assertFalse(ip3 < ip2)
1651 self.assertFalse(ip2 > ip3)
1652 self.assertTrue(ip3 > ip2)
1657 ip3 = ipaddress.ip_network('10.10.10.2/31')
1659 sorted = [ip1, ip2, ip3, ip4]
1660 unsorted = [ip2, ip4, ip1, ip3]
1663 unsorted = [ip4, ip1, ip3, ip2]