testinggtk r186 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r186 - trunk/tests
- Date: Sat, 21 Jun 2008 14:27:22 +0000 (UTC)
Author: bjornl
Date: Sat Jun 21 14:27:22 2008
New Revision: 186
URL: http://svn.gnome.org/viewvc/testinggtk?rev=186&view=rev
Log:
Two tests for the gtk.CellView class
Added:
trunk/tests/test_cellview.py
Added: trunk/tests/test_cellview.py
==============================================================================
--- (empty file)
+++ trunk/tests/test_cellview.py Sat Jun 21 14:27:22 2008
@@ -0,0 +1,20 @@
+'''
+Tests for the ``gtk.CellView`` class.
+'''
+import gtk
+
+def test_default_attributes():
+ cv = gtk.CellView()
+ assert not cv.get_property('model')
+ assert not cv.get_displayed_row()
+
+def test_set_get_model():
+ '''
+ Ensure that setting and getting the model attribute works as
+ expected.
+ '''
+ cv = gtk.CellView()
+ assert not cv.get_model()
+ store = gtk.ListStore(int)
+ cv.set_model(store)
+ assert cv.get_model() == store
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]