/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_ui.py

  • Committer: Aaron Bentley
  • Date: 2009-09-29 04:40:55 UTC
  • mfrom: (4717 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4718.
  • Revision ID: aaron@aaronbentley.com-20090929044055-e9jtpmz6eyut711h
Merged bzr.dev into fix_get_mtime.

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