Lines Matching refs:HAMLET_SCENE
164 x = zlib.compress(HAMLET_SCENE)
165 self.assertEqual(zlib.decompress(x), HAMLET_SCENE)
168 x = zlib.compress(HAMLET_SCENE, level=3)
169 self.assertEqual(zlib.decompress(x), HAMLET_SCENE)
171 zlib.compress(data=HAMLET_SCENE, level=3)
175 HAMLET_SCENE)
179 data = HAMLET_SCENE * 128
187 x = zlib.compress(HAMLET_SCENE)
206 data = HAMLET_SCENE * 10
211 data = HAMLET_SCENE * 10
230 datasrc = HAMLET_SCENE * 128
261 co.compress(data=HAMLET_SCENE)
263 do.decompress(data=zlib.compress(HAMLET_SCENE))
264 x = co.compress(HAMLET_SCENE) + co.flush()
265 y = do.decompress(x, max_length=len(HAMLET_SCENE)) + do.flush()
266 self.assertEqual(HAMLET_SCENE, y)
276 x1 = co.compress(HAMLET_SCENE)
281 self.assertEqual(HAMLET_SCENE, y1 + y2)
285 data = HAMLET_SCENE * 128
300 source = source or HAMLET_SCENE
344 source = source or HAMLET_SCENE
371 data = HAMLET_SCENE * 128
413 data = HAMLET_SCENE * 10
420 data = HAMLET_SCENE * 10
447 data = HAMLET_SCENE * 8
511 h = HAMLET_SCENE
529 co = zlib.compressobj(zdict=HAMLET_SCENE)
530 do = zlib.decompressobj(zdict=HAMLET_SCENE)
531 piece = HAMLET_SCENE[1000:1500]
622 input = HAMLET_SCENE * 10
629 input = HAMLET_SCENE * 10
638 data0 = HAMLET_SCENE
639 data1 = bytes(str(HAMLET_SCENE, "ascii").swapcase(), "ascii")
662 c.compress(HAMLET_SCENE)
669 data = HAMLET_SCENE
693 data = zlib.compress(HAMLET_SCENE)
777 zlib15 = co.compress(HAMLET_SCENE) + co.flush()
778 self.assertEqual(zlib.decompress(zlib15, 15), HAMLET_SCENE)
780 self.assertEqual(zlib.decompress(zlib15, 0), HAMLET_SCENE)
781 self.assertEqual(zlib.decompress(zlib15, 32 + 15), HAMLET_SCENE)
785 self.assertEqual(dco.decompress(zlib15), HAMLET_SCENE)
791 zlib9 = co.compress(HAMLET_SCENE) + co.flush()
792 self.assertEqual(zlib.decompress(zlib9, 9), HAMLET_SCENE)
793 self.assertEqual(zlib.decompress(zlib9, 15), HAMLET_SCENE)
795 self.assertEqual(zlib.decompress(zlib9, 0), HAMLET_SCENE)
796 self.assertEqual(zlib.decompress(zlib9, 32 + 9), HAMLET_SCENE)
798 self.assertEqual(dco.decompress(zlib9), HAMLET_SCENE)
801 deflate15 = co.compress(HAMLET_SCENE) + co.flush()
802 self.assertEqual(zlib.decompress(deflate15, -15), HAMLET_SCENE)
804 self.assertEqual(dco.decompress(deflate15), HAMLET_SCENE)
807 deflate9 = co.compress(HAMLET_SCENE) + co.flush()
808 self.assertEqual(zlib.decompress(deflate9, -9), HAMLET_SCENE)
809 self.assertEqual(zlib.decompress(deflate9, -15), HAMLET_SCENE)
811 self.assertEqual(dco.decompress(deflate9), HAMLET_SCENE)
814 gzip = co.compress(HAMLET_SCENE) + co.flush()
815 self.assertEqual(zlib.decompress(gzip, 16 + 15), HAMLET_SCENE)
816 self.assertEqual(zlib.decompress(gzip, 32 + 15), HAMLET_SCENE)
818 self.assertEqual(dco.decompress(gzip), HAMLET_SCENE)
844 HAMLET_SCENE = b""" variable