예제 #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)