

def _get_tenant_users_with_keypair(self, tenant_name):
    user_names_tenant = [user['name'] for user in config.users if (('tenant' in user) and (user['tenant'] == tenant_name))]
    src_users_with_keypair = [key['user'] for key in config.keypairs]
    return set(src_users_with_keypair).intersection(user_names_tenant)

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry_devlab/cloudferry_devlab/tests/testcases/test_verify_dst_del_tenant_resources.py VerifyDstDeletedTenantResources._get_tenant_users_with_keypair/original