~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-09-24 09:45:23 UTC
  • mfrom: (4712.1.4 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090924094523-nsz6mp3qwor3xpp3
(mbp) deprecate ProgressTask.note

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
            stdout=stdout)
159
159
        pb = ui_factory.nested_progress_bar()
160
160
        try:
161
 
            result = pb.note('t')
 
161
            result = self.applyDeprecated(deprecated_in((2, 1, 0)),
 
162
                pb.note,
 
163
                't')
162
164
            self.assertEqual(None, result)
163
165
            self.assertEqual("t\n", stdout.getvalue())
164
166
            # Since there was no update() call, there should be no clear() call
182
184
        try:
183
185
            # Create a progress update that isn't throttled
184
186
            pb.update('x', 1, 1)
185
 
            result = pb.note('t')
 
187
            result = self.applyDeprecated(deprecated_in((2, 1, 0)),
 
188
                pb.note, 't')
186
189
            self.assertEqual(None, result)
187
190
            self.assertEqual("t\n", stdout.getvalue())
188
191
            # the exact contents will depend on the terminal width and we don't