testinggtk r214 - trunk/tests



Author: bjornl
Date: Sat Jun 21 19:44:53 2008
New Revision: 214
URL: http://svn.gnome.org/viewvc/testinggtk?rev=214&view=rev

Log:
Test create gtk.Plug with display specified

Modified:
   trunk/tests/test_plug.py

Modified: trunk/tests/test_plug.py
==============================================================================
--- trunk/tests/test_plug.py	(original)
+++ trunk/tests/test_plug.py	Sat Jun 21 19:44:53 2008
@@ -2,6 +2,7 @@
 Tests for the ``gtk.Plug`` class.
 '''
 import gtk
+from gtk import gdk
 
 def test_default_attributes():
     '''
@@ -10,6 +11,9 @@
     plug = gtk.Plug(0L)
     assert plug.get_id() == 0
 
+def test_create_with_display():
+    plug = gtk.Plug(socket_id = 0L, display = gdk.display_get_default())
+
 def test_create_using_integer():
     '''
     Ensure that it is possible to create a ``gtk.Plug`` object using



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