561
559
# This is intentionally reading off the end of the file
562
560
# since we are sure that it cannot get there
563
561
self.assertListRaises((errors.ShortReadvError, AssertionError),
564
t.readv, '0123456789', [(1,1), (8,10)])
562
t.readv, 'a', [(1,1), (8,10)])
566
564
# This is trying to seek past the end of the file, it should
567
565
# also raise a special error
568
566
self.assertListRaises(errors.ShortReadvError,
569
t.readv, '0123456789', [(12,2)])
572
570
class TestSingleRangeRequestServer(TestRangeRequestServer):