diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-07-18 09:52:14 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:02 -0300 |
commit | 6f93e0a82d8b0480e0bb5dd1b19b621777bed238 (patch) | |
tree | e4619e656d72e91580b1e23e2c72ba0d081d61b1 /tests | |
parent | b6fa93c405059cdf43ada7b6fc935462871abd09 (diff) |
Improved minimal binding test passing a None value where an object type pointer is expected.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/minimalbinding/obj_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |