Rev 4134: And fix tests for bzr help. in http://people.ubuntu.com/~robertc/baz2.0/integration
Robert Collins
robertc at robertcollins.net
Mon Jun 15 11:22:22 BST 2009
At http://people.ubuntu.com/~robertc/baz2.0/integration
------------------------------------------------------------
revno: 4134
revision-id: robertc at robertcollins.net-20090615102208-35q3sg050vbxd32e
parent: robertc at robertcollins.net-20090615094137-dceus9nxgosy1rzv
committer: Robert Collins <robertc at robertcollins.net>
branch nick: integration
timestamp: Mon 2009-06-15 20:22:08 +1000
message:
And fix tests for bzr help.
=== modified file 'bzrlib/tests/test_help.py'
--- a/bzrlib/tests/test_help.py 2009-03-23 14:59:43 +0000
+++ b/bzrlib/tests/test_help.py 2009-06-15 10:22:08 +0000
@@ -29,6 +29,13 @@
)
+class TestHelp(tests.TestCase):
+
+ def setUp(self):
+ tests.TestCase.setUp(self)
+ commands.install_bzr_command_hooks()
+
+
class TestCommandHelp(tests.TestCase):
"""Tests for help on commands."""
@@ -274,7 +281,7 @@
' Blah blah blah.\n\n')
-class TestRegisteredTopic(tests.TestCase):
+class TestRegisteredTopic(TestHelp):
"""Tests for the RegisteredTopic class."""
def test_contruct(self):
@@ -313,7 +320,7 @@
self.assertEqual('baz', topic.get_help_topic())
-class TestTopicIndex(tests.TestCase):
+class TestTopicIndex(TestHelp):
"""Tests for the HelpTopicIndex class."""
def test_default_constructable(self):
@@ -346,7 +353,7 @@
self.assertEqual('', index.prefix)
-class TestCommandIndex(tests.TestCase):
+class TestCommandIndex(TestHelp):
"""Tests for the HelpCommandIndex class."""
def test_default_constructable(self):
More information about the bazaar-commits
mailing list