def _get_lzx_block(self, block_no, prev_block=None): return lzx.create_lzx_block(block_no, self.chm.clcd.window_size, self._get_lzx_segment(block_no), self.chm.lrt.block_length, prev_block)
def test_lzx_2(self): data = read_file(get_filename("lzx_files/lzx_1")) prev = create_lzx_block(block_no=50, window=65536, bytes=data, block_length=32768) data = read_file(get_filename("lzx_files/lzx_2")) block = create_lzx_block(block_no=51, window=65536, bytes=data, block_length=32768, prev_block=prev) self.assert_lzx_content(block.content, "lzx_files/lzx_2_content")