def test_decompressor_inputbuf_1(self):
    bzd = BZ2Decompressor()
    out = []
    self.assertEqual(bzd.decompress(self.DATA[:100], max_length=0), b'')
    out.append(bzd.decompress(b'', 2))
    out.append(bzd.decompress(self.DATA[100:105], 15))
    out.append(bzd.decompress(self.DATA[105:]))
    self.assertEqual(b''.join(out), self.TEXT)
def test_decompressor_inputbuf_1(self):
    bzd = BZ2Decompressor()
    out = []
    self.assertEqual(bzd.decompress(self.DATA[:100], max_length=0), b)
    out.append(bzd.decompress(b, 2))
    out.append(bzd.decompress(self.DATA[100:105], 15))
    out.append(bzd.decompress(self.DATA[105:]))
    self.assertEqual(b.join(out), self.TEXT)