コード例 #1
0
def test_not_match(file_exists, file_access, script, stderr, exists, callable):
    file_exists.return_value = exists
    file_access.return_value = callable
    assert not match(Command(script, stderr=stderr))
コード例 #2
0
def test_match(script, stderr):
    assert match(Command(script, stderr=stderr))
コード例 #3
0
def test_not_match(file_exists, file_access, script, output, exists, callable):
    file_exists.return_value = exists
    file_access.return_value = callable
    assert not match(Command(script, output))
コード例 #4
0
def test_match(script, output):
    assert match(Command(script, output))
コード例 #5
0
ファイル: test_chmod_x.py プロジェクト: Clpsplug/thefuck
def test_match(script, output):
    assert match(Command(script, output))
コード例 #6
0
ファイル: test_chmod_x.py プロジェクト: mengdaya/fuckshell
def test_match(script, stderr):
    assert match(Command(script, stderr=stderr))