testinggtk r234 - trunk/tests



Author: bjornl
Date: Mon Jun 23 19:34:10 2008
New Revision: 234
URL: http://svn.gnome.org/viewvc/testinggtk?rev=234&view=rev

Log:
Test add hbox to hbox

Modified:
   trunk/tests/test_hbox.py

Modified: trunk/tests/test_hbox.py
==============================================================================
--- trunk/tests/test_hbox.py	(original)
+++ trunk/tests/test_hbox.py	Mon Jun 23 19:34:10 2008
@@ -15,7 +15,7 @@
     hbox.add(label)
     hbox.add(label)
 
- utils pass_on_warnings
+# utils pass_on_warnings
 def test_hbox_looping():
     '''
     A ``GtkWarning`` should be printed when you attempt to add an item
@@ -29,3 +29,10 @@
     # hbox2 = gtk.HBox()
     # hbox1.add(hbox2)
     # hbox2.add(hbox1)
+
+def test_add_hbox_to_itself():
+    '''
+    Check that you can't add a ``gtk.HBox`` to itself.
+    '''
+    hbox = gtk.HBox()
+    hbox.add(hbox)



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