/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: Martin Pool
  • Date: 2009-06-23 09:17:21 UTC
  • mto: (4712.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4715.
  • Revision ID: mbp@sourcefrog.net-20090623091721-ix4tpdsj2i9g1fxb
Deprecate ProgressTask.note

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
            stdout=stdout)
132
132
        pb = ui_factory.nested_progress_bar()
133
133
        try:
134
 
            result = pb.note('t')
 
134
            result = self.applyDeprecated(deprecated_in((1, 17, 0)),
 
135
                pb.note,
 
136
                't')
135
137
            self.assertEqual(None, result)
136
138
            self.assertEqual("t\n", stdout.getvalue())
137
139
            # Since there was no update() call, there should be no clear() call
154
156
        try:
155
157
            # Create a progress update that isn't throttled
156
158
            pb.update('x', 1, 1)
157
 
            result = pb.note('t')
 
159
            result = self.applyDeprecated(deprecated_in((1, 17, 0)),
 
160
                pb.note, 't')
158
161
            self.assertEqual(None, result)
159
162
            self.assertEqual("t\n", stdout.getvalue())
160
163
            # the exact contents will depend on the terminal width and we don't