testinggtk r162 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r162 - trunk/tests
- Date: Fri, 20 Jun 2008 21:22:38 +0000 (UTC)
Author: bjornl
Date: Fri Jun 20 21:22:38 2008
New Revision: 162
URL: http://svn.gnome.org/viewvc/testinggtk?rev=162&view=rev
Log:
Two simple tests for create_row_drag_icon()
Modified:
trunk/tests/test_treeview.py
Modified: trunk/tests/test_treeview.py
==============================================================================
--- trunk/tests/test_treeview.py (original)
+++ trunk/tests/test_treeview.py Fri Jun 20 21:22:38 2008
@@ -13,6 +13,22 @@
view = gtk.TreeView()
assert not view.get_bin_window()
+def test_create_row_drag_icon():
+ view = gtk.TreeView()
+ assert not view.create_row_drag_icon((0,))
+
+def test_create_row_drag_icon_on_invalid_path():
+ '''
+ Ensure that a ``TypeError`` is raised if ``create_row_drag_icon``
+ is called with ``None`` as the ``path``.
+ '''
+ view = gtk.TreeView()
+ try:
+ view.create_row_drag_icon(None)
+ assert False
+ except TypeError:
+ assert True
+
@utils.fail_on_warnings
def test_get_dest_row_at_pos():
view = gtk.TreeView()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]