testinggtk r268 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r268 - trunk/tests
- Date: Thu, 26 Jun 2008 21:33:07 +0000 (UTC)
Author: bjornl
Date: Thu Jun 26 21:33:07 2008
New Revision: 268
URL: http://svn.gnome.org/viewvc/testinggtk?rev=268&view=rev
Log:
Tests for many more default attributes
Modified:
trunk/tests/test_treeviewcolumn.py
Modified: trunk/tests/test_treeviewcolumn.py
==============================================================================
--- trunk/tests/test_treeviewcolumn.py (original)
+++ trunk/tests/test_treeviewcolumn.py Thu Jun 26 21:33:07 2008
@@ -2,11 +2,39 @@
Tests for the ``gtk.TreeViewColumn`` class.
'''
import gtk
+import utils
def test_default_attributes():
col = gtk.TreeViewColumn()
assert col.get_cell_renderers() == []
assert col.get_spacing() == 0
+ assert col.get_sizing() == gtk.TREE_VIEW_COLUMN_GROW_ONLY
+ assert col.get_visible()
+ assert col.get_width() == 0
+ assert col.get_fixed_width() == 1
+ assert col.get_min_width() == -1
+ assert col.get_max_width() == -1
+ assert col.get_sort_column_id() == -1
+ assert col.get_sort_order() == gtk.SORT_ASCENDING
+ assert col.get_alignment() == 0.0
+ assert not col.cell_is_visible()
+ assert not col.get_clickable()
+ assert not col.get_expand()
+ assert not col.get_reorderable()
+ assert not col.get_resizable()
+ assert not col.get_sort_indicator()
+ assert not col.get_title()
+ assert not col.get_tree_view()
+ assert not col.get_widget()
+
+ utils pass_on_warnings
+def test_cell_get_size():
+ '''
+ Ensure that a warning is printed when calling ``cell_get_size`` on
+ an unrealized ``gtk.TreeViewColumn``.
+ '''
+ col = gtk.TreeViewColumn()
+ col.cell_get_size()
def test_set_get_sizing():
col = gtk.TreeViewColumn()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]