

@test.attr(type='negative')
@test.idempotent_id('1e471e5c-6f9c-437a-9257-fd9bc4b6f0fb')
def test_delete_address_scope_associated_with_subnetpool(self):
    address_scope = self._create_address_scope(ip_version=4)
    prefixes = ['10.11.12.0/24']
    subnetpool_data = {
        'name': 'foo-subnetpool',
        'min_prefixlen': '29',
        'prefixes': prefixes,
        'address_scope_id': address_scope['id'],
    }
    self.create_subnetpool(**subnetpool_data)
    address_scope.assertRaises(lib_exc.Conflict, self.client.delete_address_scope, address_scope['id'])

dataset/ETHPy150Open openstack/neutron/neutron/tests/tempest/api/test_address_scopes_negative.py AddressScopeTestNegative.test_delete_address_scope_associated_with_subnetpool/VarMisuse@82/174 `self`->`address_scope`