testinggtk r147 - trunk/tests/gobject
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r147 - trunk/tests/gobject
- Date: Fri, 20 Jun 2008 18:50:30 +0000 (UTC)
Author: bjornl
Date: Fri Jun 20 18:50:30 2008
New Revision: 147
URL: http://svn.gnome.org/viewvc/testinggtk?rev=147&view=rev
Log:
Test for adding properties to a class
Modified:
trunk/tests/gobject/__init__.py
Modified: trunk/tests/gobject/__init__.py
==============================================================================
--- trunk/tests/gobject/__init__.py (original)
+++ trunk/tests/gobject/__init__.py Fri Jun 20 18:50:30 2008
@@ -8,3 +8,10 @@
assert major == 2
assert minor >= 17
assert micro >= 0
+
+def test_install_properties():
+ class MySub(gobject.GObject):
+ prop1 = gobject.property(type = int)
+ obj = MySub()
+ obj.set_property('prop1', 100)
+ assert obj.get_property('prop1') == 100
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]