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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 11:25:18 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521112518-5x3xa7t4hnjk8kb8
Rename bzrlib => brzlib, bzr => brz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import sys
18
18
 
19
 
import bzrlib
20
 
from bzrlib import commands, tests
21
 
from bzrlib.tests import features
22
 
from bzrlib.plugins.bash_completion.bashcomp import *
 
19
import brzlib
 
20
from brzlib import commands, tests
 
21
from brzlib.tests import features
 
22
from brzlib.plugins.bash_completion.bashcomp import *
23
23
 
24
24
import subprocess
25
25
 
161
161
 
162
162
    def get_script(self):
163
163
        s = super(TestBashCompletionInvoking, self).get_script()
164
 
        return s.replace("$(bzr ", "$('%s' " % self.get_bzr_path())
 
164
        return s.replace("$(bzr ", "$('%s' " % self.get_brz_path())
165
165
 
166
166
    def test_revspec_tag_all(self):
167
167
        self.requireFeature(features.sed_feature)
224
224
    def test_bzr_version(self):
225
225
        data = CompletionData()
226
226
        cg = BashCodeGen(data)
227
 
        self.assertEqual('%s.' % bzrlib.version_string, cg.bzr_version())
 
227
        self.assertEqual('%s.' % brzlib.version_string, cg.bzr_version())
228
228
        data.plugins['foo'] = PluginData('foo', '1.0')
229
229
        data.plugins['bar'] = PluginData('bar', '2.0')
230
230
        cg = BashCodeGen(data)
231
231
        self.assertEqual('''\
232
232
%s and the following plugins:
233
233
# bar 2.0
234
 
# foo 1.0''' % bzrlib.version_string, cg.bzr_version())
 
234
# foo 1.0''' % brzlib.version_string, cg.bzr_version())
235
235
 
236
236
    def test_global_options(self):
237
237
        data = CompletionData()