diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/test_properties.py | 8 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2007-04-23 Gustavo J. A. M. Carneiro <gjc@inescporto.pt> + + * tests/test_properties.py (TestProperties.testMulti): Unit test + for get/set_properties. + 2007-04-23 Gian Mario Tagliaretti <gianmt@gnome.org> * gobject/pygobject.c: Implemented pygobject_set_properties and 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) |