[testinggtk] test for the gtk.TreeViewColumn.set_attributes() method
- From: Björn Lindqvist <bjornl src gnome org>
- To: svn-commits-list gnome org
- Subject: [testinggtk] test for the gtk.TreeViewColumn.set_attributes() method
- Date: Fri, 10 Jul 2009 14:05:06 +0000 (UTC)
commit 4d32d592d4d2322fc140ab39a64391806cb3497b
Author: Björn Lindqvist <bjourne gmail com>
Date: Fri Jul 10 16:03:27 2009 +0200
test for the gtk.TreeViewColumn.set_attributes() method
tests/test_treeviewcolumn.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_treeviewcolumn.py b/tests/test_treeviewcolumn.py
index 30dea42..baa716a 100644
--- a/tests/test_treeviewcolumn.py
+++ b/tests/test_treeviewcolumn.py
@@ -62,3 +62,13 @@ def test_cell_set_cell_data_with_incompatible_type():
col = gtk.TreeViewColumn("c1", gtk.CellRendererText(), text = 0)
iter = store.get_iter((0,))
col.cell_set_cell_data(store, iter, False, False)
+
+ utils pass_on_warnings
+def test_set_attributes():
+ '''
+ You get a warning when you try to set a attribute on the renderer
+ that does not exist.
+ '''
+ cr = gtk.CellRendererText()
+ c = gtk.TreeViewColumn()
+ c.set_attributes(cr, does_not_exist = 33)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]