summaryrefslogtreecommitdiff
path: root/tests/test_gobject.py
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2013-01-17 08:23:02 +0100
committerMartin Pitt <martinpitt@gnome.org>2013-01-17 08:23:02 +0100
commited7fb99efa81854d947ae548d41a03f5275c5884 (patch)
treec4c5ab8d235b901daddd5ba46213e321bc2e430b /tests/test_gobject.py
parentfd32acdd97f49f086a8ad5cf2b65862c4e6ccc44 (diff)
downloadpygobject-ed7fb99efa81854d947ae548d41a03f5275c5884.tar.gz
Define GObject.TYPE_VALUE gtype constant
Diffstat (limited to 'tests/test_gobject.py')
-rw-r--r--tests/test_gobject.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_gobject.py b/tests/test_gobject.py
index 9b4f5f73..a05d7589 100644
--- a/tests/test_gobject.py
+++ b/tests/test_gobject.py
@@ -597,6 +597,10 @@ class TestPropertyBindings(unittest.TestCase):
class TestGValue(unittest.TestCase):
+ def test_type_constant(self):
+ self.assertEqual(GObject.TYPE_VALUE, GObject.Value.__gtype__)
+ self.assertEqual(GObject.type_name(GObject.TYPE_VALUE), 'GValue')
+
def test_no_type(self):
value = GObject.Value()
self.assertEqual(value.g_type, GObject.TYPE_INVALID)