def METHOD_NAME(
    self,
    unconfigure_snap_proxy,
    livepatch_status,
    unconfigure_livepatch_proxy,
    _write,
    key,
    livepatch_enabled,
    FakeConfig,
):
    """Set updates snap and livepatch proxy, persist config and exits 0.
    Only update livepatch proxy config is livepatch is enabled.
    """
    if livepatch_enabled:
        livepatch_status.return_value = (
            ApplicationStatus.ENABLED,
            "",
        )
    else:
        livepatch_status.return_value = (
            ApplicationStatus.DISABLED,
            "",
        )
    args = mock.MagicMock(key=key)
    cfg = FakeConfig()
    action_config_unset(args, cfg=cfg)
    assert [
        mock.call(protocol_type=key.split("_")[0])
    ] == unconfigure_snap_proxy.call_args_list
    if livepatch_enabled:
        assert [
            mock.call(protocol_type=key.split("_")[0])
        ] == unconfigure_livepatch_proxy.call_args_list
    else:
        assert [] == unconfigure_livepatch_proxy.call_args_list