testinggtk r216 - trunk/tests/gdk



Author: bjornl
Date: Sat Jun 21 23:15:11 2008
New Revision: 216
URL: http://svn.gnome.org/viewvc/testinggtk?rev=216&view=rev

Log:
Tests for the gdk.Window class

Added:
   trunk/tests/gdk/test_window.py

Added: trunk/tests/gdk/test_window.py
==============================================================================
--- (empty file)
+++ trunk/tests/gdk/test_window.py	Sat Jun 21 23:15:11 2008
@@ -0,0 +1,12 @@
+'''
+Tests for the ``gtk.gdk.Window`` class.
+'''
+from gtk import gdk
+
+def test_window_lookup_for_display_id0():
+    '''
+    There should be no window with system ID 0 on the default display.
+    '''
+    display = gdk.display_get_default()
+    window = gdk.window_lookup_for_display(display, 0)
+    assert not window



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