testinggtk r330 - trunk/tests



Author: bjornl
Date: Tue Jul  1 19:15:22 2008
New Revision: 330
URL: http://svn.gnome.org/viewvc/testinggtk?rev=330&view=rev

Log:
Test warning when removing nonexistent action group

Modified:
   trunk/tests/test_uimanager.py

Modified: trunk/tests/test_uimanager.py
==============================================================================
--- trunk/tests/test_uimanager.py	(original)
+++ trunk/tests/test_uimanager.py	Tue Jul  1 19:15:22 2008
@@ -200,3 +200,13 @@
     ui = gtk.UIManager()
     ui.insert_action_group(gtk.ActionGroup('foo'))
     ui.insert_action_group(gtk.ActionGroup('foo'))
+
+ utils pass_on_warnings
+def test_remove_invalid_action_group():
+    '''
+    Ensure that a warning is printed if an action group that does not
+    exist in the ``gtk.UIManager`` is removed.
+    '''
+    ui = gtk.UIManager()
+    ag = gtk.ActionGroup('foo')
+    ui.remove_action_group(ag)



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