mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +00:00
minor improvement to test_brew_unknown_command
This commit is contained in:
parent
ceeaeab94b
commit
16d68be949
@ -14,8 +14,9 @@ def brew_unknown_cmd2():
|
|||||||
return '''Error: Unknown command: instaa'''
|
return '''Error: Unknown command: instaa'''
|
||||||
|
|
||||||
|
|
||||||
def test_match(brew_unknown_cmd):
|
def test_match(brew_unknown_cmd, brew_unknown_cmd2):
|
||||||
assert match(Command('brew inst', brew_unknown_cmd))
|
assert match(Command('brew inst', brew_unknown_cmd))
|
||||||
|
assert match(Command('brew instaa', brew_unknown_cmd2))
|
||||||
for command in _brew_commands():
|
for command in _brew_commands():
|
||||||
assert not match(Command('brew ' + command, ''))
|
assert not match(Command('brew ' + command, ''))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user