testinggtk r151 - trunk/tests/gobject



Author: bjornl
Date: Fri Jun 20 19:00:33 2008
New Revision: 151
URL: http://svn.gnome.org/viewvc/testinggtk?rev=151&view=rev

Log:
Test for param spec flags

Modified:
   trunk/tests/gobject/test_properties.py

Modified: trunk/tests/gobject/test_properties.py
==============================================================================
--- trunk/tests/gobject/test_properties.py	(original)
+++ trunk/tests/gobject/test_properties.py	Fri Jun 20 19:00:33 2008
@@ -20,3 +20,15 @@
     assert s1 == ''
     assert s2 == ''
     assert flags == gobject.PARAM_READWRITE
+
+def test_list_param_flags():
+    '''
+    Ensure that all available parameter specification flags are listed
+    in the gobject module.
+    '''
+    assert hasattr(gobject, 'PARAM_CONSTRUCT')
+    assert hasattr(gobject, 'PARAM_CONSTRUCT_ONLY')
+    assert hasattr(gobject, 'PARAM_LAX_VALIDATION')
+    assert hasattr(gobject, 'PARAM_READABLE')
+    assert hasattr(gobject, 'PARAM_READWRITE')
+    assert hasattr(gobject, 'PARAM_WRITABLE')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]