#NEWLINE# def test_single_top_level_menu_with_no_group( self ) : #NEWLINE# #INDENT# ' single top level menu with no group ' #NEWLINE# action_sets = [ ActionSet ( menus = [ Menu ( name = '&File' , path = 'MenuBar' ) ] ) ] #NEWLINE# builder = DummyActionManagerBuilder ( action_sets = action_sets ) #NEWLINE# menu_bar_manager = builder . create_menu_bar_manager ( 'MenuBar' ) #NEWLINE# self . assertEqual ( 1 , len ( menu_bar_manager . groups ) ) #NEWLINE# group = menu_bar_manager . find_group ( 'additions' ) #NEWLINE# ids = [ item . id for item in group . items ] #NEWLINE# self . assertEqual ( [ 'File' ] , ids ) #NEWLINE# return