~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-06 16:29:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: john@arbash-meinel.com-20060706162912-1680b115cdb24071
[merge] Johan Rydberg test updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
984
984
        if transport.is_readonly():
985
985
            file('a', 'w').write('0123456789')
986
986
        else:
987
 
            transport.put('a', StringIO('01234567890'))
 
987
            transport.put('a', StringIO('0123456789'))
988
988
 
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'))
 
994
 
 
995
        d = list(transport.readv('a', ((-1, 1), (-7, 2))))
 
996
        self.assertEqual(d[0], (9, '9'))
 
997
        self.assertEqual(d[1], (3, '34'))