Lines Matching refs:ipv6_network
817 self.ipv6_network = ipaddress.IPv6Network('2001:658:22a:cafe::/64')
988 self.assertEqual(int(self.ipv6_network.network_address),
990 self.assertEqual(str(self.ipv6_network.network_address),
992 self.assertEqual(str(self.ipv6_network.hostmask),
1041 self.assertEqual(int(self.ipv6_network.netmask),
1043 self.assertEqual(self.ipv6_network.prefixlen, 64)
1077 self.assertEqual(int(self.ipv6_network.broadcast_address),
1079 self.assertEqual(str(self.ipv6_network.broadcast_address),
1094 self.assertEqual(self.ipv6_network.supernet().prefixlen, 63)
1095 self.assertEqual(str(self.ipv6_network.supernet().network_address),
1105 self.assertEqual(self.ipv6_network.supernet(3).prefixlen, 61)
1106 self.assertEqual(str(self.ipv6_network.supernet(3).network_address),
1117 self.assertRaises(ValueError, self.ipv6_network.supernet,
1119 self.assertRaises(ValueError, self.ipv6_network.supernet,
1121 self.assertEqual(self.ipv6_network.supernet(prefixlen_diff=2),
1122 self.ipv6_network.supernet(new_prefix=62))
1130 ipv6_network = ipaddress.IPv6Network('2001:658:22a:cafe::/120')
1131 hosts = list(ipv6_network.hosts())
1163 self.assertEqual(sorted(self.ipv6_network.subnets(prefixlen_diff=4)),
1164 sorted(self.ipv6_network.subnets(new_prefix=68)))
1166 self.ipv6_network.subnets(new_prefix=63))
1168 self.ipv6_network.subnets(prefixlen_diff=4,
1180 self.assertEqual(list(self.ipv6_network.subnets())[0].prefixlen, 65)
1202 ipsv6 = [str(x) for x in self.ipv6_network.subnets(2)]
1218 ipv6_network = ipaddress.IPv6Network('2001:658:22a:cafe::/120')
1219 subnets = [str(x) for x in ipv6_network.subnets(8)]
1238 self.ipv6_network.subnets(65))
1254 self.ipv6_network.subnets(-1))
1262 self.assertEqual(self.ipv6_network.num_addresses, 18446744073709551616)
1263 self.assertEqual(list(self.ipv6_network.subnets())[0].num_addresses,
1265 self.assertEqual(self.ipv6_network.supernet().num_addresses,
1285 self.assertEqual(str(self.ipv6_network[5]),
1287 self.assertRaises(IndexError, self.ipv6_network.__getitem__, 1 << 64)
1578 self.ipv6_network)
1901 net = self.ipv6_network
1905 net = self.ipv6_network
2027 self.assertNotIn('broadcast_address', self.ipv6_network._cache)
2028 self.assertNotIn('hostmask', self.ipv6_network._cache)
2031 self.assertEqual(self.ipv6_network.network_address,
2037 self.ipv6_network.broadcast_address,
2039 self.assertEqual(self.ipv6_network.hostmask,
2048 self.assertIn('broadcast_address', self.ipv6_network._cache)
2049 self.assertIn('hostmask', self.ipv6_network._cache)