def METHOD_NAME(self):
    offs_list = list(range(0, size_to_int(self.image_len),
                           size_to_int(self.chunk_size)))
    random.shuffle(offs_list)
    for offs in offs_list:
        qemu_io('-c', 'write -P 0xff %d %s' % (offs, self.chunk_size),
                test_img)
    qemu_img('resize',  '-f', iotests.imgfmt, '--shrink', test_img,
             self.shrink_size)
    qemu_img("compare", test_img, check_img)
    self.image_verify()