566
566
self.assertEqual(l[2], (0, '0'))
567
567
self.assertEqual(l[3], (3, '34'))
570
570
server = self.get_readonly_server()
571
571
t = self._transport(server.get_url())
573
573
# This is intentionally reading off the end of the file
574
574
# since we are sure that it cannot get there
575
self.assertListRaises((errors.InvalidRange, errors.ShortReadvError,),
576
576
t.readv, 'a', [(1,1), (8,10)])
578
578
# This is trying to seek past the end of the file, it should
579
579
# also raise a special error
580
self.assertListRaises((errors.InvalidRange, errors.ShortReadvError,),