#N/A Add tests for fish

This commit is contained in:
nvbn
2015-07-24 08:04:49 +03:00
parent c34a56bc89
commit e1416a0127
5 changed files with 69 additions and 38 deletions
+20
View File
@@ -0,0 +1,20 @@
def with_confirmation(proc):
"""Ensures that command can be fixed when confirmation enabled."""
proc.sendline('ehco test')
proc.sendline('fuck')
proc.expect('echo test')
proc.expect('enter')
proc.expect_exact('ctrl+c')
proc.send('\n')
proc.expect('test')
def without_confirmation(proc):
"""Ensures that command can be fixed when confirmation disabled."""
proc.sendline('ehco test')
proc.sendline('fuck')
proc.expect('echo test')
proc.expect('test')