#NEWLINE# @ unittest . skipIf ( no_modal_dialog_tester , 'ModalDialogTester unavailable' ) #NEWLINE# def test_renamed_ok( self ) : #NEWLINE# #INDENT# self . dialog . ok_label = 'Sure' #NEWLINE# tester = ModalDialogTester ( self . dialog . open ) #NEWLINE# tester . open_and_wait ( when_opened = ( lambda x : x . click_widget ( 'Sure' ) ) ) #NEWLINE# self . assertEqual ( tester . result , OK ) #NEWLINE# self . assertEqual ( self . dialog . return_code , OK )