s = 'bar' def match(command): return ('push' in command.script_parts and 'set-upstream' in command.output)