testinggtk r221 - trunk/tests/gdk
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r221 - trunk/tests/gdk
- Date: Sun, 22 Jun 2008 02:13:30 +0000 (UTC)
Author: bjornl
Date: Sun Jun 22 02:13:30 2008
New Revision: 221
URL: http://svn.gnome.org/viewvc/testinggtk?rev=221&view=rev
Log:
Test for writing to the is_source attribute
Modified:
trunk/tests/gdk/test_dragcontext.py
Modified: trunk/tests/gdk/test_dragcontext.py
==============================================================================
--- trunk/tests/gdk/test_dragcontext.py (original)
+++ trunk/tests/gdk/test_dragcontext.py Sun Jun 22 02:13:30 2008
@@ -18,6 +18,18 @@
assert dc.start_time == 0
assert dc.protocol == 0
+def test_set_is_source_attribute():
+ '''
+ Ensure that a ``TypeError`` is raised if the ``is_source``
+ attribute is written to.
+ '''
+ dc = gdk.DragContext()
+ try:
+ dc.is_source = True
+ assert False
+ except TypeError:
+ assert True
+
def test_drag_get_selection():
'''
Ensure that calling ``drag_get_selection`` works as expected.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]