/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 bzrlib/tests/test_smart_transport.py

  • Committer: Robert J. Tanner
  • Date: 2009-04-08 03:34:31 UTC
  • mfrom: (4266 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4267.
  • Revision ID: tanner@real-time.com-20090408033431-draj0u7nd9bbby53
Merge 1.14rc1 back bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
776
776
    def test_pipe_like_stream_with_two_requests(self):
777
777
        # If two requests are read in one go, then two calls to
778
778
        # _serve_one_request should still process both of them as if they had
779
 
        # been received seperately.
 
779
        # been received separately.
780
780
        sample_request_bytes = 'command\n'
781
781
        to_server = StringIO(sample_request_bytes * 2)
782
782
        from_server = StringIO()
798
798
    def test_socket_stream_with_two_requests(self):
799
799
        # If two requests are read in one go, then two calls to
800
800
        # _serve_one_request should still process both of them as if they had
801
 
        # been received seperately.
 
801
        # been received separately.
802
802
        sample_request_bytes = 'command\n'
803
803
        server_sock, client_sock = self.portable_socket_pair()
804
804
        server = medium.SmartServerSocketStreamMedium(
1639
1639
        """
1640
1640
        # What we really want to test here is that SmartClientProtocolOne calls
1641
1641
        # accept_bytes(tuple_based_encoding_of_hello) and reads and parses the
1642
 
        # response of tuple-encoded (ok, 1).  Also, seperately we should test
 
1642
        # response of tuple-encoded (ok, 1).  Also, separately we should test
1643
1643
        # the error if the response is a non-understood version.
1644
1644
        input = StringIO('ok\x012\n')
1645
1645
        output = StringIO()
1910
1910
        """
1911
1911
        # What we really want to test here is that SmartClientProtocolTwo calls
1912
1912
        # accept_bytes(tuple_based_encoding_of_hello) and reads and parses the
1913
 
        # response of tuple-encoded (ok, 1).  Also, seperately we should test
 
1913
        # response of tuple-encoded (ok, 1).  Also, separately we should test
1914
1914
        # the error if the response is a non-understood version.
1915
1915
        input = StringIO(self.response_marker + 'success\nok\x012\n')
1916
1916
        output = StringIO()