Rev 6065: Fix tests failing on pqm. in file:///home/vila/src/bzr/bugs/747050-config-help/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Tue Aug 16 07:33:30 UTC 2011
At file:///home/vila/src/bzr/bugs/747050-config-help/
------------------------------------------------------------
revno: 6065
revision-id: v.ladeuil+lp at free.fr-20110816073329-y5w2c2oz7jbo8vxy
parent: v.ladeuil+lp at free.fr-20110812140516-0s3l7r5nsjg4rerd
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 747050-config-help
timestamp: Tue 2011-08-16 09:33:29 +0200
message:
Fix tests failing on pqm.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_plugins.py'
--- a/bzrlib/tests/test_plugins.py 2011-05-16 13:49:58 +0000
+++ b/bzrlib/tests/test_plugins.py 2011-08-16 07:33:29 +0000
@@ -615,15 +615,16 @@
def test_get_help_text_with_additional_see_also(self):
mod = FakeModule('two lines of help\nand more', 'demo')
topic = plugin.ModuleHelpTopic(mod)
- self.assertEqual("two lines of help\nand more\nSee also: bar, foo\n",
- topic.get_help_text(['foo', 'bar']))
+ self.assertEqual("two lines of help\nand more\n\n:See also: bar, foo\n",
+ topic.get_help_text(['foo', 'bar']))
def test_get_help_topic(self):
"""The help topic for a plugin is its module name."""
mod = FakeModule('two lines of help\nand more', 'bzrlib.plugins.demo')
topic = plugin.ModuleHelpTopic(mod)
self.assertEqual('demo', topic.get_help_topic())
- mod = FakeModule('two lines of help\nand more', 'bzrlib.plugins.foo_bar')
+ mod = FakeModule('two lines of help\nand more',
+ 'bzrlib.plugins.foo_bar')
topic = plugin.ModuleHelpTopic(mod)
self.assertEqual('foo_bar', topic.get_help_topic())
More information about the bazaar-commits
mailing list