[pygobject] add test for inout argument count



commit c587e1ace7429195ac6fd4db03d2f33e2af09838
Author: John (J5) Palmieri <johnp redhat com>
Date:   Mon Nov 29 15:11:46 2010 -0500

    add test for inout argument count

 tests/test_gi.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index c8b1b16..8b9c398 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -405,6 +405,7 @@ class TestInt(unittest.TestCase):
     def test_int_inout(self):
         self.assertEquals(self.MIN, GIMarshallingTests.int_inout_max_min(Number(self.MAX)))
         self.assertEquals(self.MAX, GIMarshallingTests.int_inout_min_max(Number(self.MIN)))
+        self.assertRaises(TypeError, GIMarshallingTests.int_inout_min_max, Number(self.MIN), CONSTANT_NUMBER)
 
 
 class TestUInt(unittest.TestCase):



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