• Home
  • Raw
  • Download

Lines Matching refs:ip1

1219         ip1 = ipaddress.IPv4Address('10.10.10.10')
1222 self.assertEqual(list(ipaddress._find_address_range([ip1])),
1223 [(ip1, ip1)])
1224 self.assertEqual(list(ipaddress._find_address_range([ip1, ip3])),
1225 [(ip1, ip1), (ip3, ip3)])
1226 self.assertEqual(list(ipaddress._find_address_range([ip1, ip2, ip3])),
1227 [(ip1, ip3)])
1750 ip1 = ipaddress.IPv4Address('1.1.1.0')
1758 [ip1, ip2, ip3, ip4, ip5, ip6])
1764 ip1 = ipaddress.IPv4Address('1.1.1.0')
1771 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4])
1776 ip1 = ipaddress.IPv4Network('1.1.0.0/24')
1785 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4, ip5,
1792 collapsed = ipaddress.collapse_addresses([ip1, ip2])
1807 ip1 = ipaddress.IPv6Network('2001::/100')
1811 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1814 ip1 = ipaddress.IPv6Network('2001::%scope/100')
1818 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1830 for ip1, ip2 in addr_tuples:
1832 [ip1, ip2])
1842 for ip1, ip2 in addr_tuples:
1844 [ip1, ip2])
1850 ip1 = ipaddress.ip_address('1.1.1.0')
1864 summarize(ip1, ipaddress.IPv6Address('::1')))
1866 summarize(ip1, ipaddress.IPv6Address('::1%scope')))
1868 self.assertEqual(list(summarize(ip1, ip2))[0],
1872 self.assertEqual(list(summarize(ip1, ip2)),
1876 ip1 = ipaddress.IPv4Address(0)
1879 list(summarize(ip1, ip2)))
1881 ip1 = ipaddress.ip_address('1::')
1884 self.assertEqual(list(summarize(ip1, ip2))[0],
1888 self.assertEqual(list(summarize(ip1, ip2)),
1892 ip1 = ipaddress.ip_address('1::%scope')
1895 self.assertEqual(list(summarize(ip1, ip2))[0],
1899 self.assertEqual(list(summarize(ip1, ip2)),
2012 ip1 = ipaddress.IPv4Network('1.1.1.0/24')
2016 self.assertTrue(ip1 < ip3)
2019 self.assertEqual(ip1.compare_networks(ip1), 0)
2022 self.assertEqual(ip1.compare_networks(ip2), -1)
2023 self.assertEqual(ip2.compare_networks(ip1), 1)
2025 self.assertEqual(ip1.compare_networks(ip3), -1)
2026 self.assertEqual(ip3.compare_networks(ip1), 1)
2027 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
2029 ip1 = ipaddress.IPv6Network('2001:2000::/96')
2033 self.assertTrue(ip1 < ip3)
2035 self.assertEqual(ip1.compare_networks(ip3), -1)
2036 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
2051 ip1 = ipaddress.ip_network('10.1.2.128/25')
2052 self.assertFalse(ip1 < ip1)
2053 self.assertFalse(ip1 > ip1)
2055 self.assertTrue(ip1 < ip2)
2056 self.assertFalse(ip2 < ip1)
2057 self.assertFalse(ip1 > ip2)
2058 self.assertTrue(ip2 > ip1)
2066 ip1 = ipaddress.ip_network('10.10.10.0/31')
2070 sorted = [ip1, ip2, ip3, ip4]
2071 unsorted = [ip2, ip4, ip1, ip3]
2074 unsorted = [ip4, ip1, ip3, ip2]
2077 self.assertIs(ip1.__lt__(ipaddress.ip_address('10.10.10.0')),
2383 ip1 = ipaddress.ip_address('10.1.1.0')
2388 dummy[ip1] = None