~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Andrew Bennetts
  • Date: 2008-02-25 03:29:53 UTC
  • mto: (3245.4.1 Version 3 implementation.)
  • mto: This revision was merged to the branch mainline in revision 3428.
  • Revision ID: andrew.bennetts@canonical.com-20080225032953-yt3bmby679e6mvpz
Remove a stray pdb, fix a test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2041
2041
        self.assertEqual('', smart_protocol.excess_buffer)
2042
2042
        self.assertEqual('', smart_protocol._in_buffer)
2043
2043
        self.assertFalse(smart_protocol.has_dispatched)
2044
 
        # The protocol starts by scanning one byte a time, because it needs to
2045
 
        # see a newline before it can determine the protocol version.
2046
 
        self.assertEqual(1, smart_protocol.next_read_size())
 
2044
        # The protocol starts by expecting four bytes, a length prefix for the
 
2045
        # headers.
 
2046
        self.assertEqual(4, smart_protocol.next_read_size())
2047
2047
 
2048
2048
 
2049
2049
class NoOpRequest(request.SmartServerRequest):