def _volume_is_attached_to_vm(self, vol_obj):
        match_vm_id = 0
        for attached_dev in vol_obj.attachments:
            for dst_vm in self.dst_vm_list:
                if dst_vm.id == attached_dev['server_id']:
                    match_vm_id += 1
        return len(vol_obj.attachments) == match_vm_id
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry_devlab/cloudferry_devlab/tests/testcases/test_verify_dst_del_tenant_resources.py/VerifyDstDeletedTenantResources._volume_is_attached_to_vm/original