diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-03 05:21:04 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-03 05:21:04 -0300 |
commit | 048498d28bf7a0451bfc490b9f1799d3d3751b40 (patch) | |
tree | 90102429b533478bda47213c8ad5b8d531d6204d /tests/samplebinding/derived_test.py | |
parent | 22ae136011c64b3da8f272e6f55574413064efae (diff) |
* added the ObjectType example which adds some cases similar to
those on Qt's QObject (object name, parent and children list),
although no ownership test was added yet.
* added method Abstract::getObjectId(Abstract*) as a case of
an argument that should be converted to an abstract type.
* added ListUser::multiplyPointList(std::list<Point*>&, double),
which tests the conversion from a Python list of Point wrappers
to a C++ list whose items will be altered.
Diffstat (limited to 'tests/samplebinding/derived_test.py')
-rwxr-xr-x | tests/samplebinding/derived_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/samplebinding/derived_test.py b/tests/samplebinding/derived_test.py index 77d1931cd..5077bd591 100755 --- a/tests/samplebinding/derived_test.py +++ b/tests/samplebinding/derived_test.py @@ -132,6 +132,12 @@ class DerivedTest(unittest.TestCase): self.assertEqual(d.defaultValue(3), 3.1) self.assertEqual(d.defaultValue(), 0.1) + def testCallToMethodWithAbstractArgument(self): + '''Call to method that expects an Abstract argument.''' + objId = 123 + d = Derived(objId) + self.assertEqual(Abstract.getObjectId(d), objId) + if __name__ == '__main__': unittest.main() |