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