#NEWLINE# def testDialogGetStringWhenDefault( self ) : #NEWLINE# #INDENT# 'Test DialogGetString().' #NEWLINE# self . mox . StubOutWithMock ( self . asr , 'ExecuteAndUnpack' ) #NEWLINE# ret = ( 'hello' , False ) #NEWLINE# self . asr . ExecuteAndUnpack ( ( self . asr . GENERIC_DIALOG % ( 'prompt' , 'default answer "default"' ) ) , 'sb' , 1 ) . AndReturn ( ret ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( 'hello' , self . asr . DialogGetString ( 'prompt' , args = [ 1 ] , default = 'default' ) ) #NEWLINE# self . mox . VerifyAll ( )