#NEWLINE# def test_menu_with_nonexistent_sibling( self ) : #NEWLINE# #INDENT# ' menu with non-existent sibling ' #NEWLINE# action_sets = [ ActionSet ( menus = [ Menu ( name = '&File' , path = 'MenuBar' , before = 'Bogus' ) ] ) ] #NEWLINE# builder = DummyActionManagerBuilder ( action_sets = action_sets ) #NEWLINE# self . failUnlessRaises ( ValueError , builder . create_menu_bar_manager , 'MenuBar' ) #NEWLINE# return