testinggtk r453 - trunk/tests/gdk
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r453 - trunk/tests/gdk
- Date: Wed, 29 Oct 2008 21:10:05 +0000 (UTC)
Author: bjornl
Date: Wed Oct 29 21:10:04 2008
New Revision: 453
URL: http://svn.gnome.org/viewvc/testinggtk?rev=453&view=rev
Log:
Tests for the gdk.Display class
Added:
trunk/tests/gdk/test_display.py
Added: trunk/tests/gdk/test_display.py
==============================================================================
--- (empty file)
+++ trunk/tests/gdk/test_display.py Wed Oct 29 21:10:04 2008
@@ -0,0 +1,15 @@
+'''
+Tests for the ``gdk.Display`` class.
+'''
+from gtk import gdk
+
+def test_default_attributes():
+ display = gdk.display_get_default()
+ assert isinstance(display.get_name(), str)
+ assert isinstance(display.get_n_screens(), int)
+ assert isinstance(display.get_default_screen(), gdk.Screen)
+ assert isinstance(display.list_devices(), list)
+ assert isinstance(display.get_core_pointer(), gdk.Device)
+ assert display.supports_cursor_alpha() in (True, False)
+ assert display.supports_cursor_color() in (True, False)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]