[pygobject] tests: add a test for test_glist_gtype_container_in()



commit 5af6c722e5b7db90a3ca0832c46efe0c9142a0d1
Author: Christoph Reiter <creiter src gnome org>
Date:   Sun Jul 5 11:58:50 2015 +0200

    tests: add a test for test_glist_gtype_container_in()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749696

 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 4a2df77..0b5cf6d 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -465,6 +465,12 @@ class TestEverything(unittest.TestCase):
         Everything.test_glist_nothing_in(['1', '2', '3'])
         Everything.test_glist_nothing_in2(['1', '2', '3'])
 
+    @unittest.skipUnless(hasattr(Everything, 'test_glist_gtype_container_in'),
+                         'Requires newer version of GI')
+    def test_glist_gtype(self):
+        Everything.test_glist_gtype_container_in(
+            [Everything.TestObj, Everything.TestSubObj])
+
     def test_gslist(self):
         self.assertEqual(Everything.test_gslist_nothing_return(), ['1', '2', '3'])
         self.assertEqual(Everything.test_gslist_nothing_return2(), ['1', '2', '3'])


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