~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-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        finally:
129
129
            pb.finished()
130
130
 
131
 
    def test_progress_nested(self):
132
 
        # test factory based nested and popping.
133
 
        ui = _mod_ui_text.TextUIFactory(None, None, None)
134
 
        pb1 = ui.nested_progress_bar()
135
 
        pb2 = ui.nested_progress_bar()
136
 
        # You do get a warning if the outermost progress bar wasn't finished
137
 
        # first - it's not clear if this is really useful or if it should just
138
 
        # become orphaned -- mbp 20090120
139
 
        warnings, _ = self.callCatchWarnings(pb1.finished)
140
 
        if len(warnings) != 1:
141
 
            self.fail("unexpected warnings: %r" % (warnings,))
142
 
        pb2.finished()
143
 
        pb1.finished()
144
 
 
145
131
    def test_text_ui_get_boolean(self):
146
132
        stdin = tests.StringIOWrapper("y\n" # True
147
133
                                      "n\n" # False