/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 bzrlib/tests/test_script.py

  • Committer: Martin Pool
  • Date: 2010-10-08 06:22:30 UTC
  • mto: (5422.3.9 scripts)
  • mto: This revision was merged to the branch mainline in revision 5473.
  • Revision ID: mbp@sourcefrog.net-20101008062230-3bp1pczbqxzil1bi
Make run_argv_aliases reset the global verbosity after running

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    commands,
20
20
    osutils,
21
21
    tests,
 
22
    trace,
22
23
    ui,
23
24
    )
24
25
from bzrlib.tests import script
245
246
cat dog "chicken" 'dragon'
246
247
""")
247
248
 
 
249
    def test_verbosity_isolated(self):
 
250
        """Global verbosity is isolated from commands run in scripts.
 
251
        """
 
252
        # see also 656694; we should get rid of global verbosity
 
253
        self.run_script("""
 
254
        $ bzr init --quiet a
 
255
        """)
 
256
        self.assertEquals(trace.is_quiet(), False)
 
257
 
248
258
 
249
259
class TestCat(script.TestCaseWithTransportAndScript):
250
260