testinggtk r329 - trunk/tests



Author: bjornl
Date: Tue Jul  1 18:04:04 2008
New Revision: 329
URL: http://svn.gnome.org/viewvc/testinggtk?rev=329&view=rev

Log:
Test for group with duplicate name

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 18:04:04 2008
@@ -190,3 +190,13 @@
     for group in groups:
         ui.insert_action_group(group)
     assert groups == ui.get_action_groups()
+
+ utils pass_on_warnings    
+def test_insert_action_group_with_same_name():
+    '''
+    Ensure that a warning is printed if an action group with the same
+    name as an already inserted action group is inserted.
+    '''
+    ui = gtk.UIManager()
+    ui.insert_action_group(gtk.ActionGroup('foo'))
+    ui.insert_action_group(gtk.ActionGroup('foo'))



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