/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_ui.py

  • Committer: Curtis Hovey
  • Date: 2012-02-27 15:51:10 UTC
  • mto: (776.2.1 ui-factory)
  • mto: This revision was merged to the branch mainline in revision 779.
  • Revision ID: sinzui.is@verizon.net-20120227155110-1mhlsp3f61jy14vv
Restore the check that progress bar ui methods clear the pending events to update the UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        progress_bar = ui.GtkProgressBar()
184
184
        progress_bar.tick()
185
185
        self.assertIs(True, progress_bar.show.called)
 
186
        self.assetEqual('with_main_iteration', progress_bar.tick.__name__)
186
187
 
187
188
    def test_update_with_data(self):
188
189
        # update() shows the widget, sets the fraction, then clears the pending
194
195
        self.assertEqual(0.5, progress_bar.props.fraction)
195
196
        self.assertEqual(10, progress_bar.total)
196
197
        self.assertEqual(5, progress_bar.current)
 
198
        self.assetEqual('with_main_iteration', progress_bar.update.__name__)
197
199
 
198
200
    def test_update_without_data(self):
199
201
        progress_bar = ui.GtkProgressBar()