~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_info.py

  • Committer: Ian Clatworthy
  • Date: 2010-01-21 08:53:42 UTC
  • mto: This revision was merged to the branch mainline in revision 4979.
  • Revision ID: ian.clatworthy@canonical.com-20100121085342-dqa59j0iav4gr3p7
(igc) Fix comparison bug in format name tests (trivial)

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
            if bzrdir.format_registry.get_info(key).hidden:
147
147
                continue
148
148
            expected = None
149
 
            if key in ('pack-0.92'):
 
149
            if key in ('pack-0.92',):
150
150
                expected = 'pack-0.92'
151
151
            elif key in ('knit', 'metaweave'):
152
152
                expected = 'knit or metaweave'
163
163
            expected = None
164
164
            if key in ('dirstate', 'knit'):
165
165
                expected = 'dirstate or knit'
166
 
            elif key in ('1.14'):
 
166
            elif key in ('1.14',):
167
167
                expected = '1.14'
168
 
            elif key in ('1.14-rich-root'):
 
168
            elif key in ('1.14-rich-root',):
169
169
                expected = '1.14-rich-root'
170
170
            self.assertBranchDescription(key, expected)
171
171
 
178
178
            expected = None
179
179
            if key in ('dirstate', 'knit', 'dirstate-tags'):
180
180
                expected = 'dirstate or dirstate-tags or knit'
181
 
            elif key in ('1.14'):
 
181
            elif key in ('1.14',):
182
182
                expected = '1.14'
183
 
            elif key in ('1.14-rich-root'):
 
183
            elif key in ('1.14-rich-root',):
184
184
                expected = '1.14-rich-root'
185
185
            self.assertRepoDescription(key, expected)
186
186