def METHOD_NAME(
    self, _m_resources, _m_setup_logging, capsys, FakeConfig
):
    with pytest.raises(SystemExit):
        with mock.patch(
            "sys.argv", ["/usr/bin/ua", "collect-logs", "--help"]
        ):
            with mock.patch(
                "uaclient.config.UAConfig",
                return_value=FakeConfig(),
            ):
                main()
    out, _err = capsys.readouterr()
    assert re.match(HELP_OUTPUT, out)