984
984
if transport.is_readonly():
985
985
file('a', 'w').write('0123456789')
989
989
d = list(transport.readv('a', ((0, 1), (1, 1), (3, 2), (9, 1))))
990
990
self.assertEqual(d[0], (0, '0'))
991
991
self.assertEqual(d[1], (1, '1'))
992
992
self.assertEqual(d[2], (3, '34'))
993
993
self.assertEqual(d[3], (9, '9'))
995
d = list(transport.readv('a', ((-1, 1), (-7, 2))))