Lines Matching refs:decompress

97         self.assertRaises(TypeError, zlib.decompress)
102 self.assertRaises(TypeError, zlib.decompress, arg)
123 zlib.decompress(b'', 15, sys.maxsize + 1)
125 zlib.decompressobj().decompress(b'', sys.maxsize + 1)
165 self.assertEqual(zlib.decompress(x), HAMLET_SCENE)
169 self.assertEqual(zlib.decompress(x), HAMLET_SCENE)
172 self.assertEqual(zlib.decompress(x,
183 self.assertEqual(zlib.decompress(ob), data)
190 zlib.decompress, x[:-1])
201 self.check_big_decompress_buffer(size, zlib.decompress)
208 self.assertEqual(zlib.decompress(compressed, 15, size), data)
213 self.assertEqual(zlib.decompress(compressed, 15, CustomInt()), data)
221 self.assertEqual(zlib.decompress(comp), data)
241 y1 = dco.decompress(v1 + v2)
263 do.decompress(data=zlib.compress(HAMLET_SCENE))
265 y = do.decompress(x, max_length=len(HAMLET_SCENE)) + do.flush()
279 y1 = dco.decompress(x1 + x2)
294 y1 = dco.decompress(b''.join(bufs))
309 decombuf = zlib.decompress(combuf)
318 bufs.append(dco.decompress(combuf[i:i+dcx]))
327 chunk = dco.decompress(b'')
353 self.assertEqual(data, zlib.decompress(combuf),
361 chunk = dco.decompress(cb, dcx)
378 self.assertEqual(data, zlib.decompress(combuf),
386 chunk = dco.decompress(cb, max_length)
395 chunk = dco.decompress(b'', max_length)
407 self.assertRaises(ValueError, dco.decompress, b"", -1)
417 self.assertEqual(dco.decompress(compressed, sys.maxsize), data)
423 self.assertEqual(dco.decompress(compressed, CustomInt()), data[:100])
430 ddata = dco.decompress(cdata, 1)
431 ddata += dco.decompress(dco.unconsumed_tail)
461 self.assertEqual(zlib.decompress(b''.join([a,b,c,d])),
495 expanded = dco.decompress(first + second)
521 self.assertEqual(dco.decompress(cd) + dco.flush(), h)
524 self.assertRaises(zlib.error, dco.decompress, cd)
535 self.assertEqual(do.decompress(d0), piece)
536 self.assertEqual(do.decompress(d1), piece[100:])
537 self.assertEqual(do.decompress(d2), piece[:-100])
543 self.assertEqual(zlib.decompress(x), b'foo')
544 self.assertRaises(zlib.error, zlib.decompress, x[:-5])
548 y = dco.decompress(x[:-5])
556 dco.decompress(x[:-5])
558 dco.decompress(x[-5:])
567 dco.decompress(x[:-5])
587 data += dco.decompress(x[i : i + step])
590 data += dco.decompress(
604 uncomp = dco.decompress(comp) + dco.flush()
614 dco.decompress(data, 1)
625 dco.decompress(data, 1)
632 dco.decompress(data, 1)
655 self.assertEqual(zlib.decompress(s0),data0+data0)
656 self.assertEqual(zlib.decompress(s1),data0+data1)
676 bufs0.append(d0.decompress(comp[:32]))
681 bufs0.append(d0.decompress(comp[32:]))
684 bufs1.append(d1.decompress(comp[32:]))
695 d.decompress(data)
720 decompress = lambda s: d.decompress(s) + d.flush() function
721 self.check_big_decompress_buffer(size, decompress)
731 uncomp = do.decompress(comp) + do.flush()
744 uncomp = do.decompress(comp) + do.flush()
757 uncomp = do.decompress(comp, 1) + do.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)
783 zlib.decompress(zlib15, 14)
785 self.assertEqual(dco.decompress(zlib15), HAMLET_SCENE)
788 dco.decompress(zlib15)
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)
802 self.assertEqual(zlib.decompress(deflate15, -15), HAMLET_SCENE)
804 self.assertEqual(dco.decompress(deflate15), HAMLET_SCENE)
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)
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)