def test_not_match(command): assert not match(command, None)
def test_match(output, script, target): assert match(Command(script, output))
def test_not_match(path_exists, output, script, target, exists): path_exists.return_value = exists assert not match(Command(script, output))
def test_match(stderr, script, target): assert match(Command(script=script, stderr=stderr))
def test_not_match(path_exists, stderr, script, target, exists): path_exists.return_value = exists assert not match(Command(script=script, stderr=stderr))
def test_not_match(script): assert not match(Command(script=script, stderr=''))
def test_match(command): assert match(command)