[pygobject] add test for object arrays



commit 9ee9b22bd95e44bd2eca26e7bf3b0a9a988700c5
Author: John (J5) Palmieri <johnp redhat com>
Date:   Sat Aug 13 09:19:29 2011 -0400

    add test for object arrays

 tests/test_everything.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_everything.py b/tests/test_everything.py
index 3eedbdb..b39711e 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -466,3 +466,9 @@ class TestTortureProfile(unittest.TestCase):
         print("\t====")
         print("\tTotal: %f sec" % total_time)
 
+class TestAdvancedInterfaces(unittest.TestCase):
+    def test_array_objs(self):
+        obj1, obj2 = Everything.test_array_fixed_out_objects()
+        self.assertTrue(isinstance(obj1, Everything.TestObj))
+        self.assertTrue(isinstance(obj2, Everything.TestObj))
+        self.assertNotEqual(obj1, obj2)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]