'Checks if file size at path is equal to size.'

def _is_file_size_equal(self, path, size):

    data = image_utils.qemu_img_info(path)
    virt_size = (data.virtual_size / units.Gi)
    if (virt_size == size):
        return True
    else:
        return False
