def test_is_app(script, names, result): assert is_app(Command(script), *names) == result
def test_is_app(script, names, result): assert is_app(Command(script, ""), *names) == result
def match(command): return (is_app(command, 'adb') and command.output.startswith('Android Debug Bridge version'))
def match(command): return is_app( command, "adb") and command.output.startswith("Android Debug Bridge version")