From 6f93e0a82d8b0480e0bb5dd1b19b621777bed238 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 18 Jul 2011 09:52:14 -0300 Subject: Improved minimal binding test passing a None value where an object type pointer is expected. Reviewed by Lauro Moura Reviewed by Luciano Wolf --- tests/minimalbinding/obj_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/minimalbinding/obj_test.py b/tests/minimalbinding/obj_test.py index a788c9833..18556c850 100644 --- a/tests/minimalbinding/obj_test.py +++ b/tests/minimalbinding/obj_test.py @@ -73,6 +73,11 @@ class ObjTest(unittest.TestCase): self.assertEqual(obj, obj.passObjectType(obj)) self.assertEqual(obj, obj.callPassObjectType(obj)) + def testPassObjectTypeNone(self): + obj = Obj(0) + self.assertEqual(None, obj.passObjectType(None)) + self.assertEqual(None, obj.callPassObjectType(None)) + def testPassObjectTypeReference(self): obj = Obj(0) self.assertEqual(obj, obj.passObjectTypeReference(obj)) -- cgit v1.2.3