Lines Matching refs:ip1

958         ip1 = ipaddress.IPv4Address('10.10.10.10')
961 self.assertEqual(list(ipaddress._find_address_range([ip1])),
962 [(ip1, ip1)])
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)])
1368 ip1 = ipaddress.IPv4Address('1.1.1.0')
1376 [ip1, ip2, ip3, ip4, ip5, ip6])
1382 ip1 = ipaddress.IPv4Address('1.1.1.0')
1389 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4])
1394 ip1 = ipaddress.IPv4Network('1.1.0.0/24')
1403 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4, ip5,
1410 collapsed = ipaddress.collapse_addresses([ip1, ip2])
1425 ip1 = ipaddress.IPv6Network('2001::/100')
1429 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1441 for ip1, ip2 in addr_tuples:
1443 [ip1, ip2])
1449 ip1 = ipaddress.ip_address('1.1.1.0')
1463 summarize(ip1, ipaddress.IPv6Address('::1')))
1465 self.assertEqual(list(summarize(ip1, ip2))[0],
1469 self.assertEqual(list(summarize(ip1, ip2)),
1473 ip1 = ipaddress.IPv4Address(0)
1476 list(summarize(ip1, ip2)))
1478 ip1 = ipaddress.ip_address('1::')
1481 self.assertEqual(list(summarize(ip1, ip2))[0],
1485 self.assertEqual(list(summarize(ip1, ip2)),
1548 ip1 = ipaddress.IPv4Network('1.1.1.0/24')
1552 self.assertTrue(ip1 < ip3)
1555 self.assertEqual(ip1.compare_networks(ip1), 0)
1558 self.assertEqual(ip1.compare_networks(ip2), -1)
1559 self.assertEqual(ip2.compare_networks(ip1), 1)
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())
1565 ip1 = ipaddress.IPv6Network('2001:2000::/96')
1569 self.assertTrue(ip1 < ip3)
1571 self.assertEqual(ip1.compare_networks(ip3), -1)
1572 self.assertTrue(ip1._get_networks_key() < ip3._get_networks_key())
1587 ip1 = ipaddress.ip_network('10.1.2.128/25')
1588 self.assertFalse(ip1 < ip1)
1589 self.assertFalse(ip1 > ip1)
1591 self.assertTrue(ip1 < ip2)
1592 self.assertFalse(ip2 < ip1)
1593 self.assertFalse(ip1 > ip2)
1594 self.assertTrue(ip2 > ip1)
1602 ip1 = ipaddress.ip_network('10.10.10.0/31')
1606 sorted = [ip1, ip2, ip3, ip4]
1607 unsorted = [ip2, ip4, ip1, ip3]
1610 unsorted = [ip4, ip1, ip3, ip2]
1613 self.assertIs(ip1.__lt__(ipaddress.ip_address('10.10.10.0')),
1888 ip1 = ipaddress.ip_address('10.1.1.0')
1893 dummy[ip1] = None