summaryrefslogtreecommitdiff
path: root/tests/test_dialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_dialog.py')
-rw-r--r--tests/test_dialog.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/test_dialog.py b/tests/test_dialog.py
deleted file mode 100644
index 7fc168d3..00000000
--- a/tests/test_dialog.py
+++ /dev/null
@@ -1,24 +0,0 @@
-import sys
-import unittest
-
-from common import gtk
-
-class MessageDialogTest(unittest.TestCase):
- def testDialogAdd(self):
- dialog = gtk.MessageDialog()
-
- response_id = sys.maxint + 1
- self.assertRaises(OverflowError, dialog.add_button, "Foo", response_id)
- self.assertRaises(OverflowError, dialog.add_buttons, "Foo", response_id)
-
- def testSubclass(self):
- # Normal subclassing should not register a type
- sub = type('sub', (gtk.MessageDialog,), {})
- self.assertEqual(sub.__gtype__.name, 'GtkMessageDialog')
-
- # This depends on 311254
- #type('Sub', (gtk.MessageDialog,), {'__gtype_name__': 'SubDialog'})
- #self.assertEqual(sub.__gtype__.name, 'SubDialog')
-
-if __name__ == '__main__':
- unittest.main()