testinggtk r270 - trunk/tests



Author: bjornl
Date: Thu Jun 26 23:26:42 2008
New Revision: 270
URL: http://svn.gnome.org/viewvc/testinggtk?rev=270&view=rev

Log:
Test for getting iter from path

Modified:
   trunk/tests/test_liststore.py

Modified: trunk/tests/test_liststore.py
==============================================================================
--- trunk/tests/test_liststore.py	(original)
+++ trunk/tests/test_liststore.py	Thu Jun 26 23:26:42 2008
@@ -17,6 +17,12 @@
         path = liststore.get_path(iter)
         assert path == (x,)
 
+def test_get_iter_from_path():
+    store = gtk.ListStore(str)
+    store.append(['hi'])
+    iter = store.get_iter((0,))
+    assert store.get_value(iter, 0) == 'hi'
+
 def test_row_changed_signal():
     '''
     Ensure that the ``row-changed`` signal is emitted when a row is



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