diff options
author | Gian Mario Tagliaretti <gianmt@src.gnome.org> | 2008-06-08 23:41:34 +0000 |
---|---|---|
committer | Gian Mario Tagliaretti <gianmt@src.gnome.org> | 2008-06-08 23:41:34 +0000 |
commit | ffd814ecfe8bbaeb4b8cec0875313010905d6fdc (patch) | |
tree | f34d08da8d8dbba48b3b881ad031dc7cbbc65497 /tests | |
parent | 356c06e2a8114ad56dd629b92476053daf349d04 (diff) | |
download | pygtk-ffd814ecfe8bbaeb4b8cec0875313010905d6fdc.tar.gz |
Add a gtk.FileChooserDialog get_action method to workaround an issue with the same mothos of gtk.Widget being called. fixes #534042
svn path=/trunk/; revision=2992
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 3 | ||||
-rw-r--r-- | tests/test_filechooserdialog.py | 13 |
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() |