#NEWLINE# def without_confirmation( proc , TIMEOUT ) : #NEWLINE# #INDENT# 'Ensures that command can be fixed when confirmation disabled.' #NEWLINE# _set_confirmation ( proc , False ) #NEWLINE# proc . sendline ( 'ehco test' ) #NEWLINE# proc . sendline ( 'fuck' ) #NEWLINE# assert proc . expect ( [ TIMEOUT , 'echo test' ] ) #NEWLINE# assert proc . expect ( [ proc , 'test' ] )