~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
 
162
162
class RecordingServer(object):
163
163
    """A fake HTTP server.
164
 
    
 
164
 
165
165
    It records the bytes sent to it, and replies with a 200.
166
166
    """
167
167
 
800
800
        # bytes on the socket
801
801
        ireadv = iter(t.readv('a', ((0, 1), (1, 1), (2, 4), (6, 4))))
802
802
        self.assertEqual((0, '0'), ireadv.next())
803
 
        # The server should have issued one request so far 
 
803
        # The server should have issued one request so far
804
804
        self.assertEqual(1, server.GET_request_nb)
805
805
        self.assertEqual('0123456789', t.get_bytes('a'))
806
806
        # get_bytes issued an additional request, the readv pending ones are