

@attr(migrated_tenant=['admin', 'tenant1', 'tenant2'])
def test_tenant_flavors_exist_on_dst(self):
    "Validate deleted tenant's flavors were migrated."
    unused_flavors = []
    flvlist = []
    for (tenant_name, tenant) in self.deleted_tenants:
        dst_flavors_list = [flavor.name for flavor in self.dst_cloud.novaclient.flavors.list()]
        flvlist = []
        for src_vm in tenant['vms']:
            if (not (src_vm['flavor'] in dst_flavors_list)):
                flvlist.append(src_vm['flavor'])
        if msg:
            unused_flavors.append({
                tenant_name: flvlist,
            })
    if unused_flavors:
        msg = "Tenant's flavors {0} do not exist on destination, but should be!"
        self.fail(msg.format(flvlist))

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry_devlab/cloudferry_devlab/tests/testcases/test_verify_dst_del_tenant_resources.py VerifyDstDeletedTenantResources.test_tenant_flavors_exist_on_dst/VarMisuse@114/187 `flvlist`->`msg`