testinggtk r367 - trunk/tests



Author: bjornl
Date: Mon Aug 18 18:53:23 2008
New Revision: 367
URL: http://svn.gnome.org/viewvc/testinggtk?rev=367&view=rev

Log:
Turn test around, the orientation property now a normal property

Modified:
   trunk/tests/test_scalebutton.py

Modified: trunk/tests/test_scalebutton.py
==============================================================================
--- trunk/tests/test_scalebutton.py	(original)
+++ trunk/tests/test_scalebutton.py	Mon Aug 18 18:53:23 2008
@@ -25,17 +25,16 @@
 
 def test_set_orientation_property():
     '''
-    Ensure that ``gtk.ScaleButton``:s ``orientation`` property can not
-    be modified.
+    Ensure that ``gtk.ScaleButton``:s ``orientation`` property can be
+    modified.
 
     :bug: #442042
     '''
     sb = gtk.ScaleButton(gtk.ICON_SIZE_INVALID, 0, 100, 2)
-    try:
-        sb.set_property('orientation', gtk.ORIENTATION_VERTICAL)
-        assert False
-    except TypeError:
-        assert True
+    for orientation in (gtk.ORIENTATION_HORIZONTAL,
+                        gtk.ORIENTATION_VERTICAL):
+        sb.set_property('orientation', orientation)
+        assert sb.get_property('orientation') == orientation
 
 def test_horizontal_orientation():
     '''



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