~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Ian Clatworthy
  • Date: 2007-10-25 02:06:19 UTC
  • mto: (2940.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2941.
  • Revision ID: ian.clatworthy@internode.on.net-20071025020619-2yr1xxxz227xza1y
add tests for experimental formats including help content checking

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
            'branch6',
94
94
            'bzrlib.repofmt.knitrepo.RepositoryFormatKnit3',
95
95
            'Experimental successor to knit.  Use at your own risk.',
96
 
            branch_format='bzrlib.branch.BzrBranchFormat6')
 
96
            branch_format='bzrlib.branch.BzrBranchFormat6',
 
97
            experimental=True)
97
98
        my_format_registry.register_metadir(
98
99
            'hidden format',
99
100
            'bzrlib.repofmt.knitrepo.RepositoryFormatKnit3',
140
141
        topics.register('formats', self.make_format_registry().help_topic, 
141
142
                        'Directory formats')
142
143
        topic = topics.get_detail('formats')
143
 
        new, deprecated = topic.split('Deprecated formats')
 
144
        new, rest = topic.split('Experimental formats')
 
145
        experimental, deprecated = rest.split('Deprecated formats')
144
146
        self.assertContainsRe(new, 'These formats can be used')
145
147
        self.assertContainsRe(new, 
146
148
                ':knit:\n    \(native\) \(default\) Format using knits\n')
 
149
        self.assertContainsRe(experimental, 
 
150
                ':branch6:\n    \(native\) Experimental successor to knit')
147
151
        self.assertContainsRe(deprecated, 
148
152
                ':lazy:\n    \(native\) Format registered lazily\n')
149
153
        self.assertNotContainsRe(new, 'hidden')