'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, run_as_root=self._execute_as_root)
    virt_size = int((data.virtual_size / units.Gi))
    return (virt_size == size)
