

def test_combinations(self):
    Mode = collections.namedtuple('Mode', 'addr_mode ra_mode is_auto_address')
    subnets = [Mode(None, None, False), Mode(constants.DHCPV6_STATEFUL, None, False), Mode(constants.DHCPV6_STATELESS, None, True), Mode(constants.IPV6_SLAAC, None, True), Mode(None, constants.DHCPV6_STATEFUL, False), Mode(None, constants.DHCPV6_STATELESS, True), Mode(None, constants.IPV6_SLAAC, True), Mode(constants.DHCPV6_STATEFUL, constants.DHCPV6_STATEFUL, False), Mode(constants.DHCPV6_STATELESS, constants.DHCPV6_STATELESS, True), Mode(constants.IPV6_SLAAC, constants.IPV6_SLAAC, True)]
    for subnet in subnets:
        self.subnet['ipv6_address_mode'] = subnet.addr_mode
        self.subnet['ipv6_ra_mode'] = subnet.ra_mode
        self.assertEqual(subnet.is_auto_address, ipv6_utils.is_auto_address_subnet(self.subnet))

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/common/test_ipv6_utils.py TestIsAutoAddressSubnet.test_combinations/original