aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/objecttype_test.py
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-12 18:04:01 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-16 18:42:52 -0300
commitf548708c9643481b023763aa25722a5a25a268e1 (patch)
treebeb320a64100129fc5dfe8fea8094c22e31b70f5 /tests/samplebinding/objecttype_test.py
parent6e6e88c719568af17b0dcbd6584f7f1b6c9acc80 (diff)
Create unit test to function with ambiguous signature in Python side.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/samplebinding/objecttype_test.py')
-rw-r--r--tests/samplebinding/objecttype_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/samplebinding/objecttype_test.py b/tests/samplebinding/objecttype_test.py
index 958df1d59..2a0dbbdb8 100644
--- a/tests/samplebinding/objecttype_test.py
+++ b/tests/samplebinding/objecttype_test.py
@@ -55,6 +55,13 @@ class ObjectTypeTest(unittest.TestCase):
o.setObjectName('object name')
self.assertEqual(str(o.objectName()), 'object name')
+ def testNullOverload(self):
+ o = ObjectType()
+ o.setObject(None)
+ self.assertEqual(o.callId(), 0)
+ o.setNullObject(None)
+ self.assertEqual(o.callId(), 1)
+
if __name__ == '__main__':
unittest.main()