def METHOD_NAME(self, ykman_cli):
    output = ykman_cli(
        "piv", "access", "change-management-key", "-m", DEFAULT_MANAGEMENT_KEY, "-g"
    ).output
    assert re.match(
        r"^Generated management key: [a-f0-9]{48}$", output, re.MULTILINE
    )
    output = ykman_cli("piv", "info").output
    assert "Management key is stored on the YubiKey" not in output