#NEWLINE# def test_visible_changed( self ) : #NEWLINE# #INDENT# action_item = ActionItem ( action = self . action ) #NEWLINE# with self . assertTraitChanges ( action_item . action , 'visible' , count = 1 ) : #NEWLINE# #INDENT# action_item . visible = False #NEWLINE# #UNINDENT# self . assertFalse ( self . action . visible ) #NEWLINE# with self . assertTraitChanges ( self . action , 'visible' , count = 1 ) : #NEWLINE# #INDENT# action_item . visible = True #NEWLINE# #UNINDENT# self . assertTrue ( self . action . visible )