summaryrefslogtreecommitdiffstats
path: root/tests/test_properties.py
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 /tests/test_properties.py
parent1e29b21df31efc1a7f0b9e8e1ab5a9b3de4137c8 (diff)
downloadpygobject-7e7cb4e75ea20e4f776ccc2bc906fc09248c5fbc.tar.gz
pygobject-7e7cb4e75ea20e4f776ccc2bc906fc09248c5fbc.tar.xz
pygobject-7e7cb4e75ea20e4f776ccc2bc906fc09248c5fbc.zip
Unit test for get/set_properties.
svn path=/trunk/; revision=647
Diffstat (limited to 'tests/test_properties.py')
-rw-r--r--tests/test_properties.py8
1 files changed, 8 insertions, 0 deletions
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)