コード例 #1
0
def test_not_match(file_exists, script, output, exists):
    file_exists.return_value = exists
    assert not match(Command(script, output))
コード例 #2
0
def test_match(script, result):
    output = get_output("source")
    assert match(Command(script, output))
    assert get_new_command(Command(script, output)) == result
コード例 #3
0
ファイル: test_ln_s_order.py プロジェクト: Googulator/thefuck
def test_not_match(file_exists, script, stderr, exists):
    file_exists.return_value = exists
    assert not match(Command(script, stderr=stderr))
コード例 #4
0
ファイル: test_ln_s_order.py プロジェクト: Googulator/thefuck
def test_match(script, result):
    stderr = get_stderr('source')
    assert match(Command(script, stderr=stderr))
    assert get_new_command(Command(script, stderr=stderr)) == result
コード例 #5
0
ファイル: test_ln_s_order.py プロジェクト: zjyyxjc/thefuck
def test_not_match(file_exists, script, stderr, exists):
    file_exists.return_value = exists
    assert not match(Command(script, stderr=stderr))
コード例 #6
0
ファイル: test_ln_s_order.py プロジェクト: zjyyxjc/thefuck
def test_match(script):
    stderr = get_stderr('source')
    assert match(Command(script, stderr=stderr))
コード例 #7
0
ファイル: test_ln_s_order.py プロジェクト: Clpsplug/thefuck
def test_match(script, result):
    output = get_output('source')
    assert match(Command(script, output))
    assert get_new_command(Command(script, output)) == result
コード例 #8
0
ファイル: test_ln_s_order.py プロジェクト: Clpsplug/thefuck
def test_not_match(file_exists, script, output, exists):
    file_exists.return_value = exists
    assert not match(Command(script, output))
コード例 #9
0
def test_match(script, result):
    stderr = get_stderr('source')
    assert match(Command(script, stderr=stderr))
    assert get_new_command(Command(script, stderr=stderr)) == result