예제 #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
def test_not_match(file_exists, script, stderr, exists):
    file_exists.return_value = exists
    assert not match(Command(script, stderr=stderr))
예제 #4
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
예제 #5
0
def test_not_match(file_exists, script, stderr, exists):
    file_exists.return_value = exists
    assert not match(Command(script, stderr=stderr))
예제 #6
0
def test_match(script):
    stderr = get_stderr('source')
    assert match(Command(script, stderr=stderr))
예제 #7
0
def test_match(script, result):
    output = get_output('source')
    assert match(Command(script, output))
    assert get_new_command(Command(script, output)) == result
예제 #8
0
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