summaryrefslogtreecommitdiff
path: root/tests/test_gi.py
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:47:13 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:47:16 +0900
commit0c23c15365643b062119d3e0335f62a39835fd5e (patch)
tree691e70cfd6bbc9da67a3869f629819059a30c89e /tests/test_gi.py
parente49df4afb1654f59a39d02e6ec0ecdf537ce9351 (diff)
downloadpygobject2-0c23c15365643b062119d3e0335f62a39835fd5e.tar.gz
pygobject2-0c23c15365643b062119d3e0335f62a39835fd5e.tar.bz2
pygobject2-0c23c15365643b062119d3e0335f62a39835fd5e.zip
Imported Upstream version 3.3.90
Change-Id: I2320e829dc2f47614d46efbbf92575dc9c71980e Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r--tests/test_gi.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 3862334..fbe832c 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -2067,6 +2067,20 @@ class TestGErrorReturn(unittest.TestCase):
self.assertEqual(error.message, GIMarshallingTests.CONSTANT_GERROR_MESSAGE)
+class TestParamSpec(unittest.TestCase):
+ def test_param_spec_return(self):
+ obj = GIMarshallingTests.param_spec_return()
+ self.assertEqual(obj.name, 'test-param')
+ self.assertEqual(obj.nick, 'test')
+ self.assertEqual(obj.value_type, GObject.TYPE_STRING)
+
+ def test_param_spec_out(self):
+ obj = GIMarshallingTests.param_spec_out()
+ self.assertEqual(obj.name, 'test-param')
+ self.assertEqual(obj.nick, 'test')
+ self.assertEqual(obj.value_type, GObject.TYPE_STRING)
+
+
class TestKeywordArgs(unittest.TestCase):
def test_calling(self):