def test_match(stderr): assert match(Command('git pull', stderr=stderr)) assert not match(Command('git pull')) assert not match(Command('ls', stderr=stderr))
def test_match(output): assert match(Command('git pull', output)) assert not match(Command('git pull', '')) assert not match(Command('ls', output))
def test_match(output): assert match(Command("git pull", output)) assert not match(Command("git pull", "")) assert not match(Command("ls", output))