~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Ian Clatworthy
  • Date: 2008-12-15 04:37:10 UTC
  • mfrom: (3892.1.6 bzr.help-formats)
  • mto: This revision was merged to the branch mainline in revision 3905.
  • Revision ID: ian.clatworthy@canonical.com-20081215043710-ybhxvqjeir13k5ht
Improved help on storage formats (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
        
141
141
    def test_help_topic(self):
142
142
        topics = help_topics.HelpTopicRegistry()
143
 
        topics.register('formats', self.make_format_registry().help_topic, 
144
 
                        'Directory formats')
145
 
        topic = topics.get_detail('formats')
146
 
        new, rest = topic.split('Experimental formats')
 
143
        registry = self.make_format_registry()
 
144
        topics.register('current-formats', registry.help_topic, 
 
145
                        'Current formats')
 
146
        topics.register('other-formats', registry.help_topic, 
 
147
                        'Other formats')
 
148
        new = topics.get_detail('current-formats')
 
149
        rest = topics.get_detail('other-formats')
147
150
        experimental, deprecated = rest.split('Deprecated formats')
148
 
        self.assertContainsRe(new, 'These formats can be used')
 
151
        self.assertContainsRe(new, 'bzr help formats')
149
152
        self.assertContainsRe(new, 
150
153
                ':knit:\n    \(native\) \(default\) Format using knits\n')
151
154
        self.assertContainsRe(experimental,