summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/voidholder_test.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/samplebinding/voidholder_test.py b/tests/samplebinding/voidholder_test.py
index a6fce2e0..a350bfee 100644
--- a/tests/samplebinding/voidholder_test.py
+++ b/tests/samplebinding/voidholder_test.py
@@ -40,7 +40,7 @@ class VoidHolderTest(unittest.TestCase):
self.assertEquals(voidptr, voidholder.voidPointer())
def testPutRandomObjectInsideVoidHolder(self):
- '''Passes a C++ pointer for an object created in Python to be kept VoidHolder.'''
+ '''Passes a C++ pointer for an object created in Python to be kept by VoidHolder.'''
obj = Point(1, 2)
voidholder = VoidHolder(obj)
self.assertEquals(obj, voidholder.voidPointer())
@@ -51,6 +51,14 @@ class VoidHolderTest(unittest.TestCase):
voidholder = VoidHolder()
self.assertEquals(voidholder.voidPointer(), None)
+ def testPutPythonObjectInsideVoidHolder(self):
+ '''Passes a native Python object to be kept by VoidHolder.'''
+ obj = 'Foo'
+ voidholder = VoidHolder(obj)
+ self.assertEquals(obj, voidholder.voidPointer())
+
+
+
if __name__ == '__main__':
unittest.main()