• Home
  • Raw
  • Download

Lines Matching refs:ip3

1208         ip3 = ipaddress.IPv4Address('10.10.10.12')
1211 self.assertEqual(list(ipaddress._find_address_range([ip1, ip3])),
1212 [(ip1, ip1), (ip3, ip3)])
1213 self.assertEqual(list(ipaddress._find_address_range([ip1, ip2, ip3])),
1214 [(ip1, ip3)])
1739 ip3 = ipaddress.IPv4Address('1.1.1.2')
1745 [ip1, ip2, ip3, ip4, ip5, ip6])
1753 ip3 = ipaddress.IPv4Address('1.1.1.2')
1758 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4])
1765 ip3 = ipaddress.IPv4Network('1.1.2.0/24')
1772 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4, ip5,
1796 ip3 = ipaddress.IPv6Network('2001::/96')
1798 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1799 self.assertEqual(list(collapsed), [ip3])
1803 ip3 = ipaddress.IPv6Network('2001::%scope/96')
1805 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1806 self.assertEqual(list(collapsed), [ip3])
2001 ip3 = ipaddress.IPv4Network('1.1.2.0/24')
2003 self.assertTrue(ip1 < ip3)
2004 self.assertTrue(ip3 > ip2)
2012 self.assertEqual(ip1.compare_networks(ip3), -1)
2013 self.assertEqual(ip3.compare_networks(ip1), 1)
2014 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
2018 ip3 = ipaddress.IPv6Network('2001:ffff:2000::/96')
2020 self.assertTrue(ip1 < ip3)
2021 self.assertTrue(ip3 > ip2)
2022 self.assertEqual(ip1.compare_networks(ip3), -1)
2023 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
2046 ip3 = ipaddress.ip_network('10.1.3.0/25')
2047 self.assertTrue(ip2 < ip3)
2048 self.assertFalse(ip3 < ip2)
2049 self.assertFalse(ip2 > ip3)
2050 self.assertTrue(ip3 > ip2)
2055 ip3 = ipaddress.ip_network('10.10.10.2/31')
2057 sorted = [ip1, ip2, ip3, ip4]
2058 unsorted = [ip2, ip4, ip1, ip3]
2061 unsorted = [ip4, ip1, ip3, ip2]