コード例 #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
ファイル: test_sudo.py プロジェクト: fisherMartyn/thefuck
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
ファイル: test_sudo.py プロジェクト: williamsxu/thefuck
def test_match(output):
    assert match(Command('', output))
コード例 #9
0
ファイル: test_sudo.py プロジェクト: williamsxu/thefuck
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
ファイル: test_sudo.py プロジェクト: yemyatthu1990/thefuck
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
ファイル: test_sudo.py プロジェクト: Clpsplug/thefuck
def test_not_match():
    assert not match(Command('', ''))
    assert not match(Command('sudo ls', 'Permission denied'))
コード例 #13
0
ファイル: test_sudo.py プロジェクト: Clpsplug/thefuck
def test_match(output):
    assert match(Command('', output))
コード例 #14
0
ファイル: test_sudo.py プロジェクト: FashtimeDotCom/thefuck
def test_match(stderr):
    assert match(Command(stderr=stderr), None)