testinggtk r448 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r448 - trunk/tests
- Date: Wed, 10 Sep 2008 20:53:00 +0000 (UTC)
Author: bjornl
Date: Wed Sep 10 20:53:00 2008
New Revision: 448
URL: http://svn.gnome.org/viewvc/testinggtk?rev=448&view=rev
Log:
Rename test names and variables to emphasize that the tests are for the gtk.Box API and not gtk.HBox specifically
Modified:
trunk/tests/test_box.py
Modified: trunk/tests/test_box.py
==============================================================================
--- trunk/tests/test_box.py (original)
+++ trunk/tests/test_box.py Wed Sep 10 20:53:00 2008
@@ -1,5 +1,5 @@
'''
-Tests for the ``gtk.HBox`` class.
+Tests for the ``gtk.Box`` abstract class.
'''
import gtk
import utils
@@ -8,15 +8,15 @@
def test_add_widget_twice():
'''
Ensure that you can't add the same widget twice to the same
- ``gtk.HBox``.
+ ``gtk.Box``.
'''
- hbox = gtk.HBox()
+ box = gtk.HBox()
label = gtk.Label('hi')
- hbox.add(label)
- hbox.add(label)
+ box.add(label)
+ box.add(label)
# utils pass_on_warnings
-def test_hbox_looping():
+def test_looping():
'''
A ``GtkWarning`` should be printed when you attempt to add an item
to a container that is already an ancestor of that container.
@@ -25,15 +25,15 @@
:bug: #539807
'''
- # hbox1 = gtk.HBox()
- # hbox2 = gtk.HBox()
- # hbox1.add(hbox2)
- # hbox2.add(hbox1)
+ # box1 = gtk.HBox()
+ # box2 = gtk.HBox()
+ # box1.add(box2)
+ # box2.add(box1)
@utils.pass_on_warnings
-def test_add_hbox_to_itself():
+def test_add_box_to_itself():
'''
Check that you can't add a ``gtk.HBox`` to itself.
'''
- hbox = gtk.HBox()
- hbox.add(hbox)
+ box = gtk.HBox()
+ box.add(box)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]