summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-04-23 16:20:18 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-04-23 16:20:18 +0000
commit7e7cb4e75ea20e4f776ccc2bc906fc09248c5fbc (patch)
treeccc52425cdfccee8c5ad1ef00f340fb2786b9528
parent1e29b21df31efc1a7f0b9e8e1ab5a9b3de4137c8 (diff)
downloadpygobject-7e7cb4e75ea20e4f776ccc2bc906fc09248c5fbc.tar.gz
pygobject-7e7cb4e75ea20e4f776ccc2bc906fc09248c5fbc.tar.xz
pygobject-7e7cb4e75ea20e4f776ccc2bc906fc09248c5fbc.zip
Unit test for get/set_properties.
svn path=/trunk/; revision=647
-rw-r--r--ChangeLog5
-rw-r--r--tests/test_properties.py8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index eeedb60..44daaa8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)