def METHOD_NAME(self):
    temp_dir = tempfile.mkdtemp(dir=current_dir)
    self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
    with open(os.path.join(temp_dir, 'bin'), 'wb') as f:
        self.addCleanup(os.unlink, f.name)
        f.write(b'\xce' * 10)
    self.common_test(file_args=[(0, f.name)],
                     part_size=5,
                     output_to_compare='2/dfu.bin')