testinggtk r311 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r311 - trunk/tests
- Date: Sun, 29 Jun 2008 04:04:16 +0000 (UTC)
Author: bjornl
Date: Sun Jun 29 04:04:15 2008
New Revision: 311
URL: http://svn.gnome.org/viewvc/testinggtk?rev=311&view=rev
Log:
Tests for the gtk.EventBox class
Added:
trunk/tests/test_eventbox.py
Added: trunk/tests/test_eventbox.py
==============================================================================
--- (empty file)
+++ trunk/tests/test_eventbox.py Sun Jun 29 04:04:15 2008
@@ -0,0 +1,12 @@
+'''
+Tests for the ``gtk.EventBox`` class.
+'''
+import gtk
+
+def test_visible():
+ eb = gtk.EventBox()
+ assert not eb.get_property('visible')
+ eb.show()
+ assert eb.get_property('visible')
+ eb.hide()
+ assert not eb.get_property('visible')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]