testinggtk r148 - trunk/tests/gobject
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r148 - trunk/tests/gobject
- Date: Fri, 20 Jun 2008 18:50:53 +0000 (UTC)
Author: bjornl
Date: Fri Jun 20 18:50:52 2008
New Revision: 148
URL: http://svn.gnome.org/viewvc/testinggtk?rev=148&view=rev
Log:
Test for default gobject.property attributes
Added:
trunk/tests/gobject/test_properties.py
Added: trunk/tests/gobject/test_properties.py
==============================================================================
--- (empty file)
+++ trunk/tests/gobject/test_properties.py Fri Jun 20 18:50:52 2008
@@ -0,0 +1,23 @@
+'''
+Test for gobject properties.
+'''
+import gobject
+
+def test_default_attributes():
+ prop = gobject.property()
+ assert not prop.default
+ assert not prop.name
+ assert not prop.maximum
+ assert not prop.minimum
+ assert prop.nick == ''
+ assert prop.blurb == ''
+ assert prop.type == gobject.TYPE_PYOBJECT
+ assert prop.flags == 3
+
+
+ type, s1, s2, flags = prop.get_pspec_args()
+ assert type == gobject.TYPE_PYOBJECT
+ # What does these three items mean?
+ assert s1 == ''
+ assert s2 == ''
+ assert flags == 3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]