~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

  • Committer: Ian Clatworthy
  • Date: 2007-12-10 03:31:11 UTC
  • mto: (3119.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3120.
  • Revision ID: ian.clatworthy@internode.on.net-20071210033111-43kk7y9b3jxog16v
add test for loading help from a file

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
            '\n'
202
202
            'See also: bar, foo\n')
203
203
 
 
204
    def test_get_help_text_loaded_from_file(self):
 
205
        # Pick a known topic stored in an external file
 
206
        topic = help_topics.RegisteredTopic('hooks')
 
207
        self.assertStartsWith(topic.get_help_text(),
 
208
            'Hooks\n'
 
209
            '=====\n'
 
210
            '\n')
 
211
 
204
212
    def test_get_help_topic(self):
205
213
        """The help topic for a RegisteredTopic is its topic from construction."""
206
214
        topic = help_topics.RegisteredTopic('foobar')