Index: Makefile.am
===================================================================
RCS file: /cvs/gnome/gnome-python/pygtk/tests/Makefile.am,v
retrieving revision 1.17
diff -u -p -d -r1.17 Makefile.am
--- Makefile.am	9 May 2005 20:01:40 -0000	1.17
+++ Makefile.am	2 Jul 2005 16:50:49 -0000
@@ -29,7 +29,8 @@ tests =  \
 	test_subprocess.py \
 	test_subtype.py \
 	test_gdkevent.py \
-	test_unknown.py
+	test_unknown.py \
+	test_properties.py
 
 # This is a hack to make sure a shared library is built
 testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES)
Index: test_properties.py
===================================================================
RCS file: test_properties.py
diff -N test_properties.py
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ test_properties.py	2 Jul 2005 16:50:49 -0000
@@ -0,0 +1,27 @@
+
+import unittest
+
+from common import gobject, testhelper, gtk
+
+class TestProperties(unittest.TestCase):
+
+    def testGetSet(self):
+        label = gtk.Label()
+        label.props.label = "foobar"
+        val = label.props.label
+        self.assertEqual(val, "foobar")
+
+    def testListWithInstance(self):
+        label = gtk.Label()
+        self.assert_("label" in dir(label.props))
+
+    def testListWithoutInstance(self):
+        self.assert_("label" in dir(gtk.Label.props))
+
+    def testGetSetNoInstance(self):
+        def get(obj):
+            return obj.props.label
+        def set(obj):
+            obj.props.label = "foobar"
+        self.assertRaises(TypeError, get, gtk.Label)
+        self.assertRaises(TypeError, set, gtk.Label)
