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))
Example #5
0
def test_not_match(which, script, output, which_result):
    which.return_value = which_result
    assert not match(Command(script, output))
Example #6
0
def test_match(script, output):
    assert match(Command(script, output))