Rev 2381: Fix Branch hook tests for the new eans of preserving hooks by the test suite. in http://people.ubuntu.com/~robertc/baz2.0/integration
Robert Collins
robertc at robertcollins.net
Tue Mar 27 22:40:57 BST 2007
At http://people.ubuntu.com/~robertc/baz2.0/integration
------------------------------------------------------------
revno: 2381
revision-id: robertc at robertcollins.net-20070327214048-286uc943sgxma2xe
parent: robertc at robertcollins.net-20070327045759-hb7j634wpm1ris7l
committer: Robert Collins <robertc at robertcollins.net>
branch nick: integration
timestamp: Wed 2007-03-28 07:40:48 +1000
message:
Fix Branch hook tests for the new eans of preserving hooks by the test suite.
modified:
bzrlib/tests/test_branch.py test_branch.py-20060116013032-97819aa07b8ab3b5
=== modified file 'bzrlib/tests/test_branch.py'
--- a/bzrlib/tests/test_branch.py 2007-03-22 19:41:59 +0000
+++ b/bzrlib/tests/test_branch.py 2007-03-27 21:40:48 +0000
@@ -313,7 +313,7 @@
def test_installed_hooks_are_BranchHooks(self):
"""The installed hooks object should be a BranchHooks."""
# the installed hooks are saved in self._preserved_hooks.
- self.assertIsInstance(self._preserved_hooks, BranchHooks)
+ self.assertIsInstance(self._preserved_hooks[_mod_branch.Branch], BranchHooks)
def test_install_hook_raises_unknown_hook(self):
"""install_hook should raise UnknownHook if a hook is unknown."""
More information about the bazaar-commits
mailing list