def without_confirmation(proc, TIMEOUT):
 _set_confirmation(proc, False)
 proc.sendline(u'ehco test')
 proc.sendline(u'fuck')
 assert proc.expect([TIMEOUT, u'echo test'])
 assert proc.expect([TIMEOUT, u'test'])

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