~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2485.8.39.

  • Committer: Vincent Ladeuil
  • Date: 2007-06-07 11:22:03 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070607112203-2c3190a3ppqg9c6m
Add tests around connection reuse.

* bzrlib/transport/__init__.py:
(ConnectedTransport._update_credentials): New method for
transports that can authenticate again while keeping the
connection alive.

* bzrlib/tests/test_transport_implementations.py:
(TransportTests.test__reuse_for,
TransportTests.test_reuse_connection_for_various_paths): More
tests for _reuse_for.

* bzrlib/tests/test_transport.py:
(TestConnectedTransport.test_connection_sharing_propagate_credentials):
Add test for _update_credentials.
(TestReusedTransports.test_reuse_same_transport): More tests.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: