summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/test_filechooserdialog.py13
2 files changed, 15 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 27ad44be..c2d40c88 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -15,7 +15,8 @@ tests = \
test_radiobutton.py \
test_style.py \
test_textview.py \
- test_treeview.py
+ test_treeview.py \
+ test_filechooserdialog.py
GTK_PY_FILES = __init__.py _lazyutils.py compat.py deprecation.py keysyms.py
diff --git a/tests/test_filechooserdialog.py b/tests/test_filechooserdialog.py
new file mode 100644
index 00000000..4bf6b2ac
--- /dev/null
+++ b/tests/test_filechooserdialog.py
@@ -0,0 +1,13 @@
+import unittest
+
+from common import gtk
+
+class FileChooserDialogTest(unittest.TestCase):
+ def testFileChooserDialog(self):
+ fc = gtk.FileChooserDialog()
+
+ action = fc.get_action()
+ self.assertEqual(action, gtk.FILE_CHOOSER_ACTION_OPEN)
+
+if __name__ == '__main__':
+ unittest.main()