~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Frank Aspell
  • Date: 2009-02-22 16:54:02 UTC
  • mto: This revision was merged to the branch mainline in revision 4256.
  • Revision ID: frankaspell@googlemail.com-20090222165402-2myrucnu7er5w4ha
Fixing various typos

Show diffs side-by-side

added added

removed removed

Lines of Context:
797
797
    def test_pipe_like_stream_with_two_requests(self):
798
798
        # If two requests are read in one go, then two calls to
799
799
        # _serve_one_request should still process both of them as if they had
800
 
        # been received seperately.
 
800
        # been received separately.
801
801
        sample_request_bytes = 'command\n'
802
802
        to_server = StringIO(sample_request_bytes * 2)
803
803
        from_server = StringIO()
819
819
    def test_socket_stream_with_two_requests(self):
820
820
        # If two requests are read in one go, then two calls to
821
821
        # _serve_one_request should still process both of them as if they had
822
 
        # been received seperately.
 
822
        # been received separately.
823
823
        sample_request_bytes = 'command\n'
824
824
        server_sock, client_sock = self.portable_socket_pair()
825
825
        server = medium.SmartServerSocketStreamMedium(
1660
1660
        """
1661
1661
        # What we really want to test here is that SmartClientProtocolOne calls
1662
1662
        # accept_bytes(tuple_based_encoding_of_hello) and reads and parses the
1663
 
        # response of tuple-encoded (ok, 1).  Also, seperately we should test
 
1663
        # response of tuple-encoded (ok, 1).  Also, separately we should test
1664
1664
        # the error if the response is a non-understood version.
1665
1665
        input = StringIO('ok\x012\n')
1666
1666
        output = StringIO()
1931
1931
        """
1932
1932
        # What we really want to test here is that SmartClientProtocolTwo calls
1933
1933
        # accept_bytes(tuple_based_encoding_of_hello) and reads and parses the
1934
 
        # response of tuple-encoded (ok, 1).  Also, seperately we should test
 
1934
        # response of tuple-encoded (ok, 1).  Also, separately we should test
1935
1935
        # the error if the response is a non-understood version.
1936
1936
        input = StringIO(self.response_marker + 'success\nok\x012\n')
1937
1937
        output = StringIO()