~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-19 20:32:38 UTC
  • mfrom: (1786.1.43 http)
  • Revision ID: pqm@pqm.ubuntu.com-20060719203238-892f369155dca5dc
(jam, mpee, jrydberg) update http with keep-alive and multi-range requests. http operations 2-4x faster

Show diffs side-by-side

added added

removed removed

Lines of Context:
709
709
        except (ConnectionError, NoSuchFile), e:
710
710
            pass
711
711
        except (Exception), e:
712
 
            self.fail('Wrong exception thrown (%s): %s' 
713
 
                        % (e.__class__.__name__, e))
 
712
            self.fail('Wrong exception thrown (%s.%s): %s' 
 
713
                        % (e.__class__.__module__, e.__class__.__name__, e))
714
714
        else:
715
715
            self.fail('Did not get the expected ConnectionError or NoSuchFile.')
716
716
 
988
988
        if transport.is_readonly():
989
989
            file('a', 'w').write('0123456789')
990
990
        else:
991
 
            transport.put('a', StringIO('01234567890'))
 
991
            transport.put('a', StringIO('0123456789'))
992
992
 
993
993
        d = list(transport.readv('a', ((0, 1), (1, 1), (3, 2), (9, 1))))
994
994
        self.assertEqual(d[0], (0, '0'))
995
995
        self.assertEqual(d[1], (1, '1'))
996
996
        self.assertEqual(d[2], (3, '34'))
997
997
        self.assertEqual(d[3], (9, '9'))
 
998