summaryrefslogtreecommitdiff
path: root/tests/test_unknown.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2004-11-04 15:42:06 +0000
committerJohan Dahlin <johan@src.gnome.org>2004-11-04 15:42:06 +0000
commiteacf5b1d8922bba76038331a072b74c76c185443 (patch)
tree244f570bf8e52b9c82dc01054a7ea10a768026a9 /tests/test_unknown.py
parent3d5c74c5aea68305f086dbb87a79ff1c8c2b13ae (diff)
downloadpygobject-eacf5b1d8922bba76038331a072b74c76c185443.tar.gz
Add tests for dynamic/unknown objects and interfaces
Diffstat (limited to 'tests/test_unknown.py')
-rw-r--r--tests/test_unknown.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_unknown.py b/tests/test_unknown.py
new file mode 100644
index 00000000..841a0fb0
--- /dev/null
+++ b/tests/test_unknown.py
@@ -0,0 +1,14 @@
+
+import unittest
+
+from common import gobject, testhelper
+
+TestInterface = gobject.type_from_name('TestInterface')
+
+class TestUnknown(unittest.TestCase):
+ def testFoo(self):
+ obj = testhelper.get_unknown()
+ TestUnknownGType = gobject.type_from_name('TestUnknown')
+ TestUnknown = gobject.new(TestUnknownGType).__class__
+ assert isinstance(obj, testhelper.Interface)
+ assert isinstance(obj, TestUnknown)