def test_decompressor_inputbuf_2(self):
    bzd = BZ2Decompressor()
    out = []
    self.assertEqual(bzd.decompress(self.DATA[:200], max_length=0), b'')
    out.append(bzd.decompress(b''))
    out.append(bzd.decompress(self.DATA[200:280], 2))
    out.append(bzd.decompress(self.DATA[280:300], 2))
    out.append(bzd.decompress(self.DATA[300:]))
    self.assertEqual(b''.join(out), self.TEXT)
def test_decompressor_inputbuf_2(self):
    bzd = BZ2Decompressor()
    out = []
    self.assertEqual(bzd.decompress(self.DATA[:200], max_length=0), b)
    out.append(bzd.decompress(b))
    out.append(bzd.decompress(self.DATA[200:280], 2))
    out.append(bzd.decompress(self.DATA[280:300], 2))
    out.append(bzd.decompress(self.DATA[300:]))
    self.assertEqual(b.join(out), self.TEXT)