#NEWLINE# def test_nonmodal_close( self ) : #NEWLINE# #INDENT# self . dialog . style = 'nonmodal' #NEWLINE# result = self . dialog . open ( ) #NEWLINE# self . gui . process_events ( ) #NEWLINE# self . dialog . close ( ) #NEWLINE# self . gui . process_events ( ) #NEWLINE# self . assertEqual ( result , OK ) #NEWLINE# self . assertEqual ( result . dialog . return_code , OK )