/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-28 04:53:55 UTC
  • mto: This revision was merged to the branch mainline in revision 779.
  • Revision ID: sinzui.is@verizon.net-20120228045355-imv0idsjnep0jxbz
Fixed spelling, hushed lint, updated dummy cmd_build_i18n to actually run to tell
me to install the correct package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
class PromptDialogTestCase(tests.TestCase):
57
57
 
58
58
    def test_init(self):
59
 
        # The text and buttons are created, then shown.
 
59
        # The text and buttons are created.
60
60
        dialog = ui.PromptDialog('test 123')
61
61
        self.assertEqual('test 123', dialog.props.text)
62
62
        self.assertEqual(Gtk.MessageType.QUESTION, dialog.props.message_type)
68
68
class InfoDialogTestCase(tests.TestCase):
69
69
 
70
70
    def test_init(self):
71
 
        # The text and buttons are created, then shown.
 
71
        # The text and buttons are created.
72
72
        dialog = ui.InfoDialog('test 123')
73
73
        self.assertEqual('test 123', dialog.props.text)
74
74
        self.assertEqual(Gtk.MessageType.INFO, dialog.props.message_type)
79
79
class WarningDialogTestCase(tests.TestCase):
80
80
 
81
81
    def test_init(self):
82
 
        # The tezt and buttons are created, then shown.
 
82
        # The text and buttons are created.
83
83
        dialog = ui.WarningDialog('test 123')
84
84
        self.assertEqual('test 123', dialog.props.text)
85
85
        self.assertEqual(Gtk.MessageType.WARNING, dialog.props.message_type)
90
90
class ErrorDialogTestCase(tests.TestCase):
91
91
 
92
92
    def test_init(self):
93
 
        # The tezt and buttons are created, then shown.
 
93
        # The text and buttons are created, then shown.
94
94
        dialog = ui.ErrorDialog('test 123')
95
95
        self.assertEqual('test 123', dialog.props.text)
96
96
        self.assertEqual(Gtk.MessageType.ERROR, dialog.props.message_type)