~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

  • Committer: Robert Collins
  • Date: 2007-04-20 04:08:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420040831-xff3b3kdjnei9rmg
Teach RegisteredTopic to support the additional_see_also list of related help terms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        self.assertEqual(help_topics.topic_registry.get_detail('commands'),
93
93
            topic.get_help_text())
94
94
 
 
95
    def test_get_help_text_with_additional_see_also(self):
 
96
        topic = help_topics.RegisteredTopic('commands')
 
97
        self.assertEndsWith(
 
98
            topic.get_help_text(['foo', 'bar']),
 
99
            '\n'
 
100
            'See also: bar, foo\n')
 
101
 
95
102
 
96
103
class TestTopicIndex(tests.TestCase):
97
104
    """Tests for the HelpTopicIndex class."""