testinggtk r217 - trunk/tests/gdk
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r217 - trunk/tests/gdk
- Date: Sat, 21 Jun 2008 23:57:44 +0000 (UTC)
Author: bjornl
Date: Sat Jun 21 23:57:44 2008
New Revision: 217
URL: http://svn.gnome.org/viewvc/testinggtk?rev=217&view=rev
Log:
Test for drag proto constants
Modified:
trunk/tests/gdk/__init__.py
Modified: trunk/tests/gdk/__init__.py
==============================================================================
--- trunk/tests/gdk/__init__.py (original)
+++ trunk/tests/gdk/__init__.py Sat Jun 21 23:57:44 2008
@@ -9,3 +9,16 @@
Ensure that ``gdk.ModifierType`` is a ``GFlags`` type.
'''
gobject.type_parent(gdk.ModifierType) == gobject.GFlags
+
+def test_list_drag_proto_enum():
+ '''
+ Ensure that all drag proto constants are defined in the gdk
+ module.
+ '''
+ assert hasattr(gdk, 'DRAG_PROTO_MOTIF')
+ assert hasattr(gdk, 'DRAG_PROTO_XDND')
+ assert hasattr(gdk, 'DRAG_PROTO_ROOTWIN')
+ assert hasattr(gdk, 'DRAG_PROTO_NONE')
+ assert hasattr(gdk, 'DRAG_PROTO_WIN32_DROPFILES')
+ assert hasattr(gdk, 'DRAG_PROTO_OLE2')
+ assert hasattr(gdk, 'DRAG_PROTO_LOCAL')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]