diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:47:13 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:47:16 +0900 |
commit | 0c23c15365643b062119d3e0335f62a39835fd5e (patch) | |
tree | 691e70cfd6bbc9da67a3869f629819059a30c89e /tests/test_gi.py | |
parent | e49df4afb1654f59a39d02e6ec0ecdf537ce9351 (diff) | |
download | pygobject2-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.py | 14 |
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): |