diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile.am | 1 | ||||
| -rw-r--r-- | tests/gtype.py | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 6543375..1c332e2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,7 @@ tests = \ conversion.py \ enum.py \ + gtype.py \ signal.py PYTHONPATH = $(top_builddir):$(top_builddir)/gobject:$(top_srcdir):$(top_srcdir)/gtk diff --git a/tests/gtype.py b/tests/gtype.py new file mode 100644 index 0000000..b109102 --- /dev/null +++ b/tests/gtype.py @@ -0,0 +1,15 @@ +import unittest + +from common import gobject, gtk + +class GTypeTest(unittest.TestCase): + def testBoolType(self): + store = gtk.ListStore(gobject.TYPE_BOOLEAN) + assert store.get_column_type(0) == gobject.TYPE_BOOLEAN + store = gtk.ListStore('gboolean') + assert store.get_column_type(0) == gobject.TYPE_BOOLEAN + store = gtk.ListStore(bool) + assert store.get_column_type(0) == gobject.TYPE_BOOLEAN + +if __name__ == '__main__': + unittest.main() |
