From 7e7cb4e75ea20e4f776ccc2bc906fc09248c5fbc Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 23 Apr 2007 16:20:18 +0000 Subject: Unit test for get/set_properties. svn path=/trunk/; revision=647 --- tests/test_properties.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_properties.py') diff --git a/tests/test_properties.py b/tests/test_properties.py index 5a819fa..e155911 100644 --- a/tests/test_properties.py +++ b/tests/test_properties.py @@ -192,3 +192,11 @@ class TestProperties(unittest.TestCase): obj.set_property(key, max) self.assertEqual(obj.get_property(key), max) + + def testMulti(self): + obj = PropertyObject() + obj.set_properties(normal="foo", + uint64=7) + normal, uint64 = obj.get_properties("normal", "uint64") + self.assertEqual(normal, "foo") + self.assertEqual(uint64, 7) -- cgit