def METHOD_NAME(clirunner, validate_cliresult, isolated_pio_core):
    result = clirunner.invoke(
        cli_platform.package_install_cmd,
        ["--global", "--tool", "platformio/tool-avrdude@~1.60300.0"],
    )
    validate_cliresult(result)
    result = clirunner.invoke(
        cli_platform.platform_update, ["--dry-run", "--json-output"]
    )
    validate_cliresult(result)
    output = json.loads(result.output)
    assert len(output) == 1
    assert output[0]["name"] == "atmelavr"
    assert len(isolated_pio_core.join("packages").listdir()) == 1