~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Robert Collins
  • Date: 2010-01-08 06:33:05 UTC
  • mto: This revision was merged to the branch mainline in revision 4944.
  • Revision ID: robertc@robertcollins.net-20100108063305-qxgq2t7prgp0op1j
Adjust errors.py to fix missing references to 'warn'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2008, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2008, 2009 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
248
248
        finally:
249
249
            pb.finished()
250
250
 
251
 
    def test_quietness(self):
252
 
        os.environ['BZR_PROGRESS_BAR'] = 'text'
253
 
        ui_factory = _mod_ui_text.TextUIFactory(None,
254
 
            test_progress._TTYStringIO(),
255
 
            test_progress._TTYStringIO())
256
 
        self.assertIsInstance(ui_factory._progress_view,
257
 
            _mod_ui_text.TextProgressView)
258
 
        ui_factory.be_quiet(True)
259
 
        self.assertIsInstance(ui_factory._progress_view,
260
 
            _mod_ui_text.NullProgressView)
261
 
 
262
251
 
263
252
class TestTextUIOutputStream(tests.TestCase):
264
253
    """Tests for output stream that synchronizes with progress bar."""