#NEWLINE# def testDialogDisplay( self ) : #NEWLINE# #INDENT# 'Test DialogDisplay().' #NEWLINE# self . mox . StubOutWithMock ( ret . asr , 'ExecuteAndUnpack' ) #NEWLINE# ret = ( 'OK' , False ) #NEWLINE# self . asr . ExecuteAndUnpack ( ( self . asr . BUTTON_DIALOG % ( 'prompt' , 'buttons {"OK"}' ) ) , 'sb' , 1 ) . AndReturn ( ret ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( 'OK' , self . asr . DialogDisplay ( 'prompt' , args = [ 1 ] ) ) #NEWLINE# self . mox . VerifyAll ( )