def test_not_match(): assert not match(Command(), None)
def test_match(stderr, stdout): assert match(Command(stderr=stderr, stdout=stdout), None)
def test_not_match(): assert not match(Command()) assert not match(Command(script='sudo ls', stderr='Permission denied'))
def test_match(stderr): assert match(Command(stderr=stderr), None)
def test_match(output): assert match(Command('', output))
def test_not_match(): assert not match(Command('', '')) assert not match(Command('sudo ls', 'Permission denied'))
def test_not_match(): assert not match(Command("", "")) assert not match(Command("sudo ls", "Permission denied"))
def test_match(): assert match(Command('', '', 'Permission denied'), None) assert match(Command('', '', 'permission denied'), None) assert match(Command('', '', "npm ERR! Error: EACCES, unlink"), None) assert not match(Command('', '', ''), None)