testinggtk r214 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r214 - trunk/tests
- Date: Sat, 21 Jun 2008 19:44:53 +0000 (UTC)
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]