def METHOD_NAME(self):
    self.assert_no_active_block_jobs()
    result = self.vm.qmp('drive-backup', device='drive0', sync='top',
                         format=iotests.imgfmt, target=target_img)
    self.assert_qmp(result, 'return', {})
    self.wait_until_completed(check_offset=False)
    self.assert_no_active_block_jobs()
    self.vm.shutdown()
    self.assertTrue(iotests.compare_images(test_img, target_img),
                    'target image does not match source after backup')