testinggtk r350 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r350 - trunk/tests
- Date: Sun, 3 Aug 2008 00:43:59 +0000 (UTC)
Author: bjornl
Date: Sun Aug 3 00:43:59 2008
New Revision: 350
URL: http://svn.gnome.org/viewvc/testinggtk?rev=350&view=rev
Log:
Test for the sensitive property
Modified:
trunk/tests/test_action.py
Modified: trunk/tests/test_action.py
==============================================================================
--- trunk/tests/test_action.py (original)
+++ trunk/tests/test_action.py Sun Aug 3 00:43:59 2008
@@ -93,6 +93,13 @@
action.set_visible(value)
assert action.get_visible() == value
+def test_set_get_sensitive():
+ action = gtk.Action('name', 'action', 'tooltip', None)
+ assert action.get_sensitive()
+ for value in (False, True):
+ action.set_sensitive(value)
+ assert action.get_sensitive() == value
+
def test_set_get_visible_overflown():
action = gtk.Action('name', 'action', 'tooltip', None)
assert action.get_property('visible-overflown')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]