summaryrefslogtreecommitdiff
path: root/tests/test_gi.py
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:37:35 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:37:37 +0900
commit8c716c24c89f4229ba1dd2859df94827d8c935c8 (patch)
treea426831630e5bf1bdf1cd204216d958c4b131e85 /tests/test_gi.py
parente94eac598d6c67611cd184e40480265208110b14 (diff)
downloadpygobject2-8c716c24c89f4229ba1dd2859df94827d8c935c8.tar.gz
pygobject2-8c716c24c89f4229ba1dd2859df94827d8c935c8.tar.bz2
pygobject2-8c716c24c89f4229ba1dd2859df94827d8c935c8.zip
Imported Upstream version 2.90.4
Change-Id: Ib8f95df396c1690e019c961142cb5fc6de1b394c Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r--tests/test_gi.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py
index c84ca23..dd91cb8 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -703,6 +703,35 @@ class TestArray(unittest.TestCase):
object_ = GIMarshallingTests.Object()
self.assertEquals([-1, 0, 1, 2], object_.method_array_return())
+ def test_array_enum_in(self):
+ GIMarshallingTests.array_enum_in([GIMarshallingTests.Enum.VALUE1,
+ GIMarshallingTests.Enum.VALUE2,
+ GIMarshallingTests.Enum.VALUE3])
+
+ def test_array_boxed_struct_in(self):
+ struct1 = GIMarshallingTests.BoxedStruct()
+ struct1.long_ = 1
+ struct2 = GIMarshallingTests.BoxedStruct()
+ struct2.long_ = 2
+ struct3 = GIMarshallingTests.BoxedStruct()
+ struct3.long_ = 3
+
+ GIMarshallingTests.array_struct_in([struct1, struct2, struct3])
+
+ def test_array_simple_struct_in(self):
+ struct1 = GIMarshallingTests.SimpleStruct()
+ struct1.long_ = 1
+ struct2 = GIMarshallingTests.SimpleStruct()
+ struct2.long_ = 2
+ struct3 = GIMarshallingTests.SimpleStruct()
+ struct3.long_ = 3
+
+ GIMarshallingTests.array_simple_struct_in([struct1, struct2, struct3])
+
+ def test_array_multi_array_key_value_in(self):
+ GIMarshallingTests.multi_array_key_value_in(["one", "two", "three"],
+ [1, 2, 3])
+
def test_array_fixed_out_struct(self):
struct1, struct2 = GIMarshallingTests.array_fixed_out_struct()