~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 5247.3.9.

  • Committer: Vincent Ladeuil
  • Date: 2010-06-02 15:45:08 UTC
  • mto: (5247.6.1 http-leaks)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100602154508-g5ojvqupg1ioq41a
Ensure a simple dialog can occur between a client and a server.

* bzrlib/tests/test_test_server.py:
(TCPClient.connect): Ensure we don't reuse a connected client.
(TCPClient.read, TCPClient.write): Basic methods to dialog with
the server.
(TCPConnectionHandler.handle): Implement a basic dialog handling
for the server.
(TestTestingServerInAThread.test_client_talks_server_respond):
Test a connection end to end.

* bzrlib/tests/test_server.py:
(TestingTCPServerMixin.verify_request): Don't process the
connection if we are not serving anymore.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: