summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/test_api.py8
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 56dd262d..a10bdd68 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,6 +1,7 @@
EXTRA_DIST = $(tests) common.py runtests.py testmodule.py leak.glade
tests = \
+ test_api.py \
test_glade.py \
test_conversion.py \
test_dialog.py \
diff --git a/tests/test_api.py b/tests/test_api.py
new file mode 100644
index 00000000..9b715cd5
--- /dev/null
+++ b/tests/test_api.py
@@ -0,0 +1,8 @@
+import unittest
+
+from common import gtk
+
+class APITest(unittest.TestCase):
+ def testKeysyms(self):
+ self.failUnless(hasattr(gtk.keysyms, 'Escape'))
+ self.assertEqual(gtk.keysyms.Escape, 0xFF1B)