/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: Canonical.com Patch Queue Manager
  • Date: 2010-10-08 07:13:14 UTC
  • mfrom: (5463.1.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20101008071314-um52guvl7sel5r0h
(mbp) reset global verbosity after each command and test (Martin Pool)

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