/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/tests/blackbox/test_aliases.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 01:35:14 UTC
  • mfrom: (7490.7.6 work)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: jelmer@jelmer.uk-20200322013514-7vw1ntwho04rcuj3
merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        def bzr_catch_error(args, **kwargs):
35
35
            return self.run_bzr(args, **kwargs)[1]
36
36
 
37
 
 
38
 
        conf = config.GlobalConfig.from_string('''[ALIASES]
 
37
        conf = config.GlobalConfig.from_string(b'''[ALIASES]
39
38
c=cat
40
39
c1=cat -r 1
41
40
c2=cat -r 1 -r2
64
63
        # If --no-aliases breaks all of bzr, we also get retcode=3
65
64
        # So we need to catch the output as well
66
65
        self.assertEqual(bzr_catch_error('--no-aliases c a',
67
 
                                          retcode=None),
68
 
                          'brz: ERROR: unknown command "c". '
69
 
                          'Perhaps you meant "ci"\n')
 
66
                                         retcode=None),
 
67
                         'brz: ERROR: unknown command "c". '
 
68
                         'Perhaps you meant "ci"\n')
70
69
 
71
70
        bzr('c -r1 -r2', retcode=3)
72
71
        bzr('c1 -r1 -r2', retcode=3)