示例#1
0
文件: test_sudo.py 项目: 7oi/thefuck
def test_not_match():
    assert not match(Command(), None)
示例#2
0
def test_not_match():
    assert not match(Command(), None)
示例#3
0
文件: test_sudo.py 项目: 7oi/thefuck
def test_match(stderr, stdout):
    assert match(Command(stderr=stderr, stdout=stdout), None)
示例#4
0
def test_not_match():
    assert not match(Command())
    assert not match(Command(script='sudo ls', stderr='Permission denied'))
示例#5
0
def test_match(stderr, stdout):
    assert match(Command(stderr=stderr, stdout=stdout), None)
示例#6
0
def test_match(stderr):
    assert match(Command(stderr=stderr), None)
示例#7
0
def test_not_match():
    assert not match(Command())
    assert not match(Command(script='sudo ls', stderr='Permission denied'))
示例#8
0
def test_match(output):
    assert match(Command('', output))
示例#9
0
def test_not_match():
    assert not match(Command('', ''))
    assert not match(Command('sudo ls', 'Permission denied'))
示例#10
0
def test_not_match():
    assert not match(Command("", ""))
    assert not match(Command("sudo ls", "Permission denied"))
示例#11
0
def test_match():
    assert match(Command('', '', 'Permission denied'), None)
    assert match(Command('', '', 'permission denied'), None)
    assert match(Command('', '', "npm ERR! Error: EACCES, unlink"), None)
    assert not match(Command('', '', ''), None)
示例#12
0
def test_not_match():
    assert not match(Command('', ''))
    assert not match(Command('sudo ls', 'Permission denied'))
示例#13
0
def test_match(output):
    assert match(Command('', output))
示例#14
0
def test_match(stderr):
    assert match(Command(stderr=stderr), None)