372
382
def test_seek_across_ranges(self):
375
384
f.seek(126) # skip the two first ranges
376
385
self.assertEquals('AB', f.read(2))
378
387
def test_checked_read_dont_overflow_buffers(self):
381
389
# We force a very low value to exercise all code paths in _checked_read
382
390
f._discarded_buf_size = 8
383
391
f.seek(126) # skip the two first ranges