/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 16:15:13 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-20120227161513-aiqgzjxxxpkuksv7
Added a test for ProgressBarWindow.

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        progress_bar = ui.GtkProgressBar()
229
229
        progress_bar.finished()
230
230
        self.assertIs(True, progress_bar.finished.called)
 
231
 
 
232
 
 
233
class ProgressBarWindowTestCase(tests.TestCase):
 
234
 
 
235
    def test_init(self):
 
236
        pb_window = ui.ProgressBarWindow()
 
237
        self.assertEqual('Progress', pb_window.props.title)
 
238
        self.assertEqual(
 
239
            Gtk.WindowPosition.CENTER_ALWAYS, pb_window.props.window_position)
 
240
        self.assertIsInstance(pb_window.pb, ui.GtkProgressBar)