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