testinggtk r153 - trunk/tests/gobject
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r153 - trunk/tests/gobject
- Date: Fri, 20 Jun 2008 19:10:04 +0000 (UTC)
Author: bjornl
Date: Fri Jun 20 19:10:04 2008
New Revision: 153
URL: http://svn.gnome.org/viewvc/testinggtk?rev=153&view=rev
Log:
Test for checking that all type enums are defined
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 19:10:04 2008
@@ -15,3 +15,34 @@
obj = MySub()
obj.set_property('prop1', 100)
assert obj.get_property('prop1') == 100
+
+def test_list_types():
+ '''
+ Ensure that all required object types are defined in the gobject
+ module.
+ '''
+ assert hasattr(gobject, 'TYPE_BOOLEAN')
+ assert hasattr(gobject, 'TYPE_BOXED')
+ assert hasattr(gobject, 'TYPE_CHAR')
+ assert hasattr(gobject, 'TYPE_DOUBLE')
+ assert hasattr(gobject, 'TYPE_ENUM')
+ assert hasattr(gobject, 'TYPE_FLAGS')
+ assert hasattr(gobject, 'TYPE_FLOAT')
+ assert hasattr(gobject, 'TYPE_GSTRING')
+ assert hasattr(gobject, 'TYPE_INT')
+ assert hasattr(gobject, 'TYPE_INT64')
+ assert hasattr(gobject, 'TYPE_INTERFACE')
+ assert hasattr(gobject, 'TYPE_INVALID')
+ assert hasattr(gobject, 'TYPE_LONG')
+ assert hasattr(gobject, 'TYPE_NONE')
+ assert hasattr(gobject, 'TYPE_OBJECT')
+ assert hasattr(gobject, 'TYPE_PARAM')
+ assert hasattr(gobject, 'TYPE_POINTER')
+ assert hasattr(gobject, 'TYPE_PYOBJECT')
+ assert hasattr(gobject, 'TYPE_STRING')
+ assert hasattr(gobject, 'TYPE_UCHAR')
+ assert hasattr(gobject, 'TYPE_UINT')
+ assert hasattr(gobject, 'TYPE_UINT64')
+ assert hasattr(gobject, 'TYPE_ULONG')
+ assert hasattr(gobject, 'TYPE_UNICHAR')
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]