def test_delete_network_profile_with_add_tenants_parameter(self):
        tenant_ids = ['another-tenant-1', 'another-tenant-2']
        data = self.get_test_network_profile_dict(segment_type='vxlan',
                                                  sub_type='enhanced',
                                                  **{n1kv_const.ADD_TENANTS:
                                                  tenant_ids})
        net_profile = self.create_assert_network_profile_success(data)
        net_profile_id = net_profile['network_profile']['id']
        del_req = self.new_delete_request('network_profiles', net_profile_id)
        del_res = del_req.get_response(self.ext_api)
        self.assertEqual(webob.exc.HTTPNoContent.code, del_res.status_int)

        # assert that bindings for all tenants are gone
        for tenant_id in tenant_ids:
            self.assert_profile_binding_absent(
                binding='network_profile_bindings',
                tenant_id=tenant_id,
                profile_id=net_profile_id
            )
Test deletion for a network profile owned by multiple tenants.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/n1kv/test_network_profile_service.py/TestN1KVMechDriverNetworkProfiles.test_delete_network_profile_with_add_tenants_parameter