def METHOD_NAME(self, message, expected_message_html):
    """
    Verifies that a user message is escaped correctly.
    """
    PageLevelMessages.register_user_message(self.request, UserMessageType.INFO, message)
    messages = list(PageLevelMessages.user_messages(self.request))
    assert len(messages) == 1
    assert messages[0].message_html == expected_message_html