Ejemplo n.º 1
0
def test_not_match(file_exists, script, output, exists):
    file_exists.return_value = exists
    assert not match(Command(script, output))
Ejemplo n.º 2
0
def test_match(script, result):
    output = get_output("source")
    assert match(Command(script, output))
    assert get_new_command(Command(script, output)) == result
Ejemplo n.º 3
0
def test_not_match(file_exists, script, stderr, exists):
    file_exists.return_value = exists
    assert not match(Command(script, stderr=stderr))
Ejemplo n.º 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
Ejemplo n.º 5
0
def test_not_match(file_exists, script, stderr, exists):
    file_exists.return_value = exists
    assert not match(Command(script, stderr=stderr))
Ejemplo n.º 6
0
def test_match(script):
    stderr = get_stderr('source')
    assert match(Command(script, stderr=stderr))
Ejemplo n.º 7
0
def test_match(script, result):
    output = get_output('source')
    assert match(Command(script, output))
    assert get_new_command(Command(script, output)) == result
Ejemplo n.º 8
0
def test_not_match(file_exists, script, output, exists):
    file_exists.return_value = exists
    assert not match(Command(script, output))
Ejemplo n.º 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