def test_not_match(output, script, branch_name): assert not match(Command(script, output))
def test_match_bitbucket(output_bitbucket): assert not match(Command('git push origin', output_bitbucket))
def test_match_bitbucket(output_bitbucket): assert not match(Command("git push origin", output_bitbucket))
def test_match(stderr): assert match(Command('git push master', stderr=stderr), None) assert not match(Command('git push master'), None) assert not match(Command('ls', stderr=stderr), None)
def test_match(output): assert match(Command('git push', output)) assert match(Command('git push master', output)) assert not match(Command('git push master', '')) assert not match(Command('ls', output))