def test_create_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)
        # assert that the bindings are created for all tenants
        for tenant_id in tenant_ids:
            self.assert_profile_binding_exists(
                binding='network_profile_bindings',
                tenant_id=tenant_id,
                profile_id=net_profile['network_profile']['id']
            )
Test a network profile creation while adding more tenants to it.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/n1kv/test_network_profile_service.py/TestN1KVMechDriverNetworkProfiles.test_create_network_profile_with_add_tenants_parameter