testinggtk r123 - trunk/tests



Author: bjornl
Date: Sat Jun 14 15:14:04 2008
New Revision: 123
URL: http://svn.gnome.org/viewvc/testinggtk?rev=123&view=rev

Log:
Tests for the gtk.WindowGroup class

Added:
   trunk/tests/test_windowgroup.py

Added: trunk/tests/test_windowgroup.py
==============================================================================
--- (empty file)
+++ trunk/tests/test_windowgroup.py	Sat Jun 14 15:14:04 2008
@@ -0,0 +1,16 @@
+'''
+Tests for the ``gtk.WindowGroup`` class.
+'''
+import gtk
+
+def test_add_none_window():
+    '''
+    Ensure that a ``TypeError`` is raised if an attempt to add
+    ``None`` to a ``gtk.WindowGroup`` is made.
+    '''
+    group = gtk.WindowGroup()
+    try:
+        group.add_window(None)
+        assert False
+    except TypeError:
+        assert True



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