def test_not_match(script, output): assert not match(Command(script, output))
def test_match(): assert match(Command("docker pes", output("pes")))
def test_match_management_subcmd(script, output): assert match(Command(script, output))
def test_match(): assert match(Command('docker pes', stderr=stderr('pes')))
def test_not_match(script, stderr): assert not match(Command(script, stderr=stderr))
def test_match(): assert match(Command('docker pes', output('pes')))
def test_not_match(script, stderr): assert not match(Command(script, stderr=stderr), None)
def test_match(): assert match(Command('docker pes', stderr=stderr('pes')), None)