/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 14:20: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-20120227142013-ph9if5ebmnnlczgm
Added test for PromptDialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        self.assertIsInstance(
124
124
            ui_factory._progress_bar_widget, ui.ProgressBarWindow)
125
125
        self.assertIs(True, ui.ProgressBarWindow.tick.called)
 
126
 
 
127
 
 
128
class PromptDialogTestCase(tests.TestCase):
 
129
 
 
130
    def test__init(self):
 
131
        dialog = ui.PromptDialog('test 123')
 
132
        label = dialog.get_content_area().get_children()[0]
 
133
        self.assertEqual('test 123', label.props.label)