#NEWLINE# def test_react_to_dock_pane_removed( self ) : #NEWLINE# #INDENT# self . task_state . dock_panes . remove ( self . task . dock_panes [ 0 ] ) #NEWLINE# self . assertEqual ( 1 , len ( self . dock_pane_toggle_group . items ) ) #NEWLINE# names = self . get_dock_pane_toggle_action_names ( ) #NEWLINE# expected_names = [ 'Dock Pane 1' ] #NEWLINE# self . assertEqual ( list ( sorted ( expected_names ) ) , list ( sorted ( names ) ) )