/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/script.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import shlex
27
27
import textwrap
28
28
 
29
 
from bzrlib import (
 
29
from breezy import (
30
30
    osutils,
31
31
    tests,
32
32
    )
177
177
    
178
178
    Can be used as:
179
179
 
180
 
    from bzrlib.tests import script
 
180
    from breezy.tests import script
181
181
 
182
182
    ...
183
183
 
184
184
        def test_bug_nnnnn(self):
185
185
            sr = script.ScriptRunner()
186
186
            sr.run_script(self, '''
187
 
            $ bzr init
188
 
            $ bzr do-this
 
187
            $ brz init
 
188
            $ brz do-this
189
189
            # Boom, error
190
190
            ''')
191
191
    """
314
314
            output = None
315
315
        return output
316
316
 
317
 
    def do_bzr(self, test_case, input, args):
 
317
    def do_brz(self, test_case, input, args):
318
318
        retcode, out, err = test_case._run_bzr_core(
319
319
            args, retcode=None, encoding=None, stdin=input, working_dir=None)
320
320
        return retcode, out, err
499
499
 
500
500
    Can be used as:
501
501
 
502
 
    from bzrlib.tests import script
 
502
    from breezy.tests import script
503
503
 
504
504
 
505
505
    class TestBug(script.TestCaseWithTransportAndScript):
506
506
 
507
507
        def test_bug_nnnnn(self):
508
508
            self.run_script('''
509
 
            $ bzr init
510
 
            $ bzr do-this
 
509
            $ brz init
 
510
            $ brz do-this
511
511
            # Boom, error
512
512
            ''')
513
513
    """