/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_smart_transport.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 13:30:12 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181116133012-vanconhyb6gjnkpw
Fix more syntax errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3061
3061
        invalid_request = (
3062
3062
            protocol.MESSAGE_VERSION_THREE  # protocol version marker
3063
3063
            + b'\0\0\0\x02de'  # empty headers
3064
 
            + b'oX'  # + # a single byte part: 'X'.  ConventionalRequestHandler will
 
3064
            + b'oX' +  # a single byte part: 'X'.  ConventionalRequestHandler will
3065
3065
            # error at this part.
3066
 
            b'oX'  # + # and again.
3067
 
            b'e  # '  # end of message
 
3066
            b'oX'  +  # and again.
 
3067
            b'e'  # end of message
3068
3068
            )
3069
3069
 
3070
3070
        to_server = BytesIO(invalid_request)
3415
3415
        encoder.send_response(response)
3416
3416
        expected_response = (
3417
3417
            b'bzr message 3 (bzr 1.6)\n'  # protocol marker
3418
 
            b'\x00\x00\x00\x02de'  # + # headers dict (empty)
3419
 
            interrupted_body_stream)
 
3418
            b'\x00\x00\x00\x02de'  # headers dict (empty)
 
3419
            + interrupted_body_stream)
3420
3420
        self.assertEqual(expected_response, out_stream.getvalue())
3421
3421
 
3422
3422