def METHOD_NAME(
    self,
    _m_resources,
    _logging,
    kv_pair,
    err_msg,
    capsys,
    FakeConfig,
):
    """Exit 1 and print help on invalid key_value_pair input param."""
    with pytest.raises(SystemExit):
        with mock.patch(
            "sys.argv", ["/usr/bin/ua", "config", "unset", kv_pair]
        ):
            with mock.patch(
                "uaclient.config.UAConfig",
                return_value=FakeConfig(),
            ):
                main()
    out, err = capsys.readouterr()
    assert HELP_OUTPUT == out
    assert err_msg in err