/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

  • Committer: Robert Collins
  • Date: 2007-04-20 03:07:01 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420030701-2val6cjy3eocu77y
Add prefixes to HelpIndexes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        index = help_topics.HelpTopicIndex()
98
98
        self.assertEqual([], index.get_topics('nothing by this name'))
99
99
 
 
100
    def test_prefix(self):
 
101
        """TopicIndex has a prefix of ''."""
 
102
        index = help_topics.HelpTopicIndex()
 
103
        self.assertEqual('', index.prefix)
 
104
 
100
105
 
101
106
class TestCommandIndex(tests.TestCase):
102
107
    """Tests for the HelpCommandIndex class."""
121
126
        index = commands.HelpCommandIndex()
122
127
        self.assertEqual([], index.get_topics('nothing by this name'))
123
128
 
 
129
    def test_prefix(self):
 
130
        """CommandIndex has a prefix of 'commands/'."""
 
131
        index = commands.HelpCommandIndex()
 
132
        self.assertEqual('commands/', index.prefix)
 
133
 
124
134
 
125
135
class TestHelpIndices(tests.TestCase):
126
136
    """Tests for the HelpIndices class."""