testinggtk r121 - trunk/tests



Author: bjornl
Date: Sun Jun  8 22:38:17 2008
New Revision: 121
URL: http://svn.gnome.org/viewvc/testinggtk?rev=121&view=rev

Log:
Fix test_default_attributes. gtk.Statusbar has a resize grip by default, new test checking the chilren

Modified:
   trunk/tests/test_statusbar.py

Modified: trunk/tests/test_statusbar.py
==============================================================================
--- trunk/tests/test_statusbar.py	(original)
+++ trunk/tests/test_statusbar.py	Sun Jun  8 22:38:17 2008
@@ -5,5 +5,15 @@
 
 def test_default_attributes():
     bar = gtk.Statusbar()
-    assert not bar.get_has_resize_grip()
+    assert bar.get_has_resize_grip()
+
+def test_check_children():
+    '''
+    Ensure that a newly constructed ``gtk.Statusbar`` has one child
+    which is an instance of a ``gtk.Frame``.
+    '''
+    bar = gtk.Statusbar()
+    children = bar.get_children()
+    assert len(children) == 1
+    assert isinstance(children[0], gtk.Frame)
 



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