def test_not_match(which, script, stderr, which_result):
    which.return_value = which_result
    assert not match(Command(script, stderr=stderr))
def test_match(script, stderr):
    assert match(Command(script, stderr=stderr))
def test_not_match(which, script, stderr, which_result):
    which.return_value = which_result
    assert not match(Command(script, stderr=stderr))
def test_match(script, stderr):
    assert match(Command(script, stderr=stderr))
Exemplo n.º 5
0
def test_not_match(which, script, output, which_result):
    which.return_value = which_result
    assert not match(Command(script, output))
Exemplo n.º 6
0
def test_match(script, output):
    assert match(Command(script, output))