#NEWLINE# def test_top_level_menus_no_groups_before_and_after( self ) : #NEWLINE# #INDENT# ' top level menus no groups, before and after ' #NEWLINE# action_sets = [ ActionSet ( menus = [ Menu ( name = '&Edit' , path = 'MenuBar' , after = 'File' ) ] ) , ActionSet ( menus = [ Menu ( name = '&File' , path = 'MenuBar' ) ] ) , ActionSet ( menus = [ Menu ( name = '&Help' , path = 'MenuBar' ) ] ) , ActionSet ( menus = [ Menu ( name = '&Tools' , path = 'MenuBar' , before = 'Help' ) ] ) ] #NEWLINE# builder = DummyActionManagerBuilder ( action_sets = action_sets ) #NEWLINE# menu_manager = builder . create_menu_bar_manager ( 'MenuBar' ) #NEWLINE# self . assertEqual ( 1 , len ( menu_manager . groups ) ) #NEWLINE# additions = menu_manager . find_group ( 'additions' ) #NEWLINE# ids = [ item . id for item in additions . items ] #NEWLINE# self . assertEqual ( [ 'File' , 'Edit' , 'Tools' , 'Help' ] , ids ) #NEWLINE# return