Lines Matching refs:bufs
196 bufs = []
198 bufs.append(co.compress(data[i:i+256]))
199 bufs.append(co.flush())
200 combuf = ''.join(bufs)
203 y1 = dco.decompress(''.join(bufs))
212 bufs = []
214 bufs.append(co.compress(data[i:i+cx]))
215 bufs.append(co.flush())
216 combuf = ''.join(bufs)
221 bufs = []
223 bufs.append(dco.decompress(combuf[i:i+dcx]))
228 bufs.append(dco.flush())
233 bufs.append(chunk)
239 self.assertEqual(data, ''.join(bufs))
251 bufs = []
253 bufs.append(co.compress(data[i:i+cx]))
254 bufs.append(co.flush())
255 combuf = ''.join(bufs)
260 bufs = []
267 bufs.append(chunk)
269 bufs.append(dco.flush())
270 self.assertEqual(data, ''.join(bufs), 'Wrong data retrieved')
276 bufs = []
278 bufs.append(co.compress(data[i:i+256]))
279 bufs.append(co.flush())
280 combuf = ''.join(bufs)
285 bufs = []
292 bufs.append(chunk)
295 bufs.append(dco.flush())
301 bufs.append(chunk)
302 self.assertEqual(data, ''.join(bufs), 'Wrong data retrieved')