/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 breezy/plugins/bash_completion/tests/test_bashcomp.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-03 01:51:19 UTC
  • mfrom: (6973.14.14 python3-m)
  • Revision ID: breezy.the.bot@gmail.com-20180703015119-8wqoc0wqw45irl6r
Fix more tests on Python3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-m/+merge/348800

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
    def test_revspec_tag_all(self):
167
167
        self.requireFeature(features.sed_feature)
168
168
        wt = self.make_branch_and_tree('.', format='dirstate-tags')
169
 
        wt.branch.tags.set_tag('tag1', 'null:')
170
 
        wt.branch.tags.set_tag('tag2', 'null:')
171
 
        wt.branch.tags.set_tag('3tag', 'null:')
 
169
        wt.branch.tags.set_tag('tag1', b'null:')
 
170
        wt.branch.tags.set_tag('tag2', b'null:')
 
171
        wt.branch.tags.set_tag('3tag', b'null:')
172
172
        self.complete(['brz', 'log', '-r', 'tag', ':'])
173
173
        self.assertCompletionEquals('tag1', 'tag2', '3tag')
174
174
 
175
175
    def test_revspec_tag_prefix(self):
176
176
        self.requireFeature(features.sed_feature)
177
177
        wt = self.make_branch_and_tree('.', format='dirstate-tags')
178
 
        wt.branch.tags.set_tag('tag1', 'null:')
179
 
        wt.branch.tags.set_tag('tag2', 'null:')
180
 
        wt.branch.tags.set_tag('3tag', 'null:')
 
178
        wt.branch.tags.set_tag('tag1', b'null:')
 
179
        wt.branch.tags.set_tag('tag2', b'null:')
 
180
        wt.branch.tags.set_tag('3tag', b'null:')
181
181
        self.complete(['brz', 'log', '-r', 'tag', ':', 't'])
182
182
        self.assertCompletionEquals('tag1', 'tag2')
183
183
 
184
184
    def test_revspec_tag_spaces(self):
185
185
        self.requireFeature(features.sed_feature)
186
186
        wt = self.make_branch_and_tree('.', format='dirstate-tags')
187
 
        wt.branch.tags.set_tag('tag with spaces', 'null:')
 
187
        wt.branch.tags.set_tag('tag with spaces', b'null:')
188
188
        self.complete(['brz', 'log', '-r', 'tag', ':', 't'])
189
189
        self.assertCompletionEquals(r'tag\ with\ spaces')
190
190
        self.complete(['brz', 'log', '-r', '"tag:t'])
195
195
    def test_revspec_tag_endrange(self):
196
196
        self.requireFeature(features.sed_feature)
197
197
        wt = self.make_branch_and_tree('.', format='dirstate-tags')
198
 
        wt.branch.tags.set_tag('tag1', 'null:')
199
 
        wt.branch.tags.set_tag('tag2', 'null:')
 
198
        wt.branch.tags.set_tag('tag1', b'null:')
 
199
        wt.branch.tags.set_tag('tag2', b'null:')
200
200
        self.complete(['brz', 'log', '-r', '3..tag', ':', 't'])
201
201
        self.assertCompletionEquals('tag1', 'tag2')
202
202
        self.complete(['brz', 'log', '-r', '"3..tag:t'])