def METHOD_NAME(self):
    parser = text2html.HTML_PARSER
    mocked_match = mock.Mock()
    mocked_match.groups.return_value = ["cmd", "text"]
    self.assertEqual(
        r"""<a id="mxplink" href="#" """
        """onclick="Evennia.msg(&quot;text&quot;,[&quot;cmd&quot;],{});"""
        """return false;">text</a>""",
        parser.sub_mxp_links(mocked_match),
    )