diff options
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/test_gdk.py | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index e914250..86d97c4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -22,6 +22,7 @@ tests = \ test_conversion.py \ test_dialog.py \ test_enum.py \ + test_gdk.py \ test_gtype.py \ test_mainloop.py \ test_radiobutton.py \ diff --git a/tests/test_gdk.py b/tests/test_gdk.py new file mode 100644 index 0000000..7bbaf9a --- /dev/null +++ b/tests/test_gdk.py @@ -0,0 +1,12 @@ +import unittest + +from common import gtk + +class GdkTest(unittest.TestCase): + def testBitmapCreateFromData(self): + gtk.gdk.bitmap_create_from_data(None, '\x00', 1, 1) + + def testPixmapCreateFromData(self): + black = gtk.gdk.color_parse('black') + gtk.gdk.pixmap_create_from_data(None, '\x00', 1, 1, 1, + black, black) |