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")
663 c.compress(HAMLET_SCENE)
672 data = HAMLET_SCENE
697 data = zlib.compress(HAMLET_SCENE)
783 zlib15 = co.compress(HAMLET_SCENE) + co.flush()
784 self.assertEqual(zlib.decompress(zlib15, 15), HAMLET_SCENE)
786 self.assertEqual(zlib.decompress(zlib15, 0), HAMLET_SCENE)
787 self.assertEqual(zlib.decompress(zlib15, 32 + 15), HAMLET_SCENE)
791 self.assertEqual(dco.decompress(zlib15), HAMLET_SCENE)
797 zlib9 = co.compress(HAMLET_SCENE) + co.flush()
798 self.assertEqual(zlib.decompress(zlib9, 9), HAMLET_SCENE)
799 self.assertEqual(zlib.decompress(zlib9, 15), HAMLET_SCENE)
801 self.assertEqual(zlib.decompress(zlib9, 0), HAMLET_SCENE)
802 self.assertEqual(zlib.decompress(zlib9, 32 + 9), HAMLET_SCENE)
804 self.assertEqual(dco.decompress(zlib9), HAMLET_SCENE)
807 deflate15 = co.compress(HAMLET_SCENE) + co.flush()
808 self.assertEqual(zlib.decompress(deflate15, -15), HAMLET_SCENE)
810 self.assertEqual(dco.decompress(deflate15), HAMLET_SCENE)
813 deflate9 = co.compress(HAMLET_SCENE) + co.flush()
814 self.assertEqual(zlib.decompress(deflate9, -9), HAMLET_SCENE)
815 self.assertEqual(zlib.decompress(deflate9, -15), HAMLET_SCENE)
817 self.assertEqual(dco.decompress(deflate9), HAMLET_SCENE)
820 gzip = co.compress(HAMLET_SCENE) + co.flush()
821 self.assertEqual(zlib.decompress(gzip, 16 + 15), HAMLET_SCENE)
822 self.assertEqual(zlib.decompress(gzip, 32 + 15), HAMLET_SCENE)
824 self.assertEqual(dco.decompress(gzip), HAMLET_SCENE)
835 HAMLET_SCENE = b""" variable