testinggtk r252 - trunk/tests



Author: bjornl
Date: Wed Jun 25 21:30:21 2008
New Revision: 252
URL: http://svn.gnome.org/viewvc/testinggtk?rev=252&view=rev

Log:
Tests for the gtk.Alignment class

Added:
   trunk/tests/test_alignment.py

Added: trunk/tests/test_alignment.py
==============================================================================
--- (empty file)
+++ trunk/tests/test_alignment.py	Wed Jun 25 21:30:21 2008
@@ -0,0 +1,12 @@
+'''
+Tests for the gtk.Alignment class.
+'''
+import gtk
+
+def test_default_attributes():
+    a = gtk.Alignment()
+    top, bottom, left, right = a.get_padding()
+    assert top == 0.0
+    assert bottom == 0.0
+    assert left == 0.0
+    assert right == 0.0



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