~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 01:07:51 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420010751-mghuh1ac3ce1ovhl
Add get_help_text() to RegisteredTopic to get the help as a string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        topic = help_topics.RegisteredTopic('basic')
55
55
        self.assertEqual('basic', topic.topic)
56
56
 
 
57
    def test_get_help_text(self):
 
58
        """A RegisteredTopic returns the get_detail results for get_help_text."""
 
59
        topic = help_topics.RegisteredTopic('commands')
 
60
        self.assertEqual(help_topics.topic_registry.get_detail('commands'),
 
61
            topic.get_help_text())
 
62
 
57
63
 
58
64
class TestTopicContext(tests.TestCase):
59
65
    """Tests for the HelpTopicContext class."""