def test_not_match(script, output): assert not match(Command(script, output))
def test_not_match(script, stderr): assert not match(Command(script, stderr=stderr))
def test_match(script, command): assert match(Command(script, output.format(command)))
def test_match(script, command): assert match(Command(script, stderr=stderr.format(command)))