def test_update_policy_profile(self):
        ml2_config.cfg.CONF.set_override(
            'restrict_policy_profiles',
            True,
            'ml2_cisco_n1kv')
        port_profiles = n1kv_client.Client().list_port_profiles()
        test_port_profile = port_profiles[TEST_PP][
            'properties']
        tenant_ids = ['tenant1', 'tenant2']
        # test pp update with new tenant additions
        self.update_assert_profile(profile_type='policy',
                                   profile_id=test_port_profile['id'],
                                   add_tenants=tenant_ids)
        # test pp update with existing tenant deletions
        self.update_assert_profile(profile_type='policy',
                                   profile_id=test_port_profile['id'],
                                   remove_tenants=tenant_ids)
Test policy profile updation including both adding new tenants,
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/n1kv/test_policy_profile_service.py/TestPolicyProfilePlugin.test_update_policy_profile