~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_readonly.py

  • Committer: Vincent Ladeuil
  • Date: 2007-06-06 08:42:07 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-20070606084207-6fa0f02eadtezlrf
Fix test suite to provide a better debugging experience.

* bzrlib/tests/TransportUtil.py:
(TestCaseWithConnectionHookedTransport.setUp.cleanup): hooks are
installed on demand but always reset if installed.
(TestCaseWithConnectionHookedTransport.install_hooks,
TestCaseWithConnectionHookedTransport.reset_hooks): New methods
giving a finer control on when hooks are active.

* bzrlib/tests/commands/test_push.py:
(TestPush.test_push): Install hooks when necessary.

* bzrlib/tests/commands/test_pull.py:
(TestPull.test_pull): Install hooks when necessary.

* bzrlib/tests/commands/test_missing.py:
(TestMissing.test_missing): Install hooks when necessary.

* bzrlib/tests/commands/test_merge.py:
(TestMerge.test_merge): Install hooks when necessary.

* bzrlib/tests/commands/test_init_repository.py:
(TestInitRepository.setUp): Install hooks when necessary.

* bzrlib/tests/commands/test_init.py:
(TestInit.setUp): Install hooks when necessary.

* bzrlib/tests/commands/test_checkout.pyL
(TestCheckout.test_checkout): Install hooks when necessary.

* bzrlib/tests/commands/test_cat.py:
(TestCat.test_cat): Install hooks when necessary.

* bzrlib/tests/commands/test_branch.py:
(TestBranch.setUp): Install hooks when necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context: