def METHOD_NAME(self):
    d = self.create_doc()
    main_par = DocParagraph.create(d.document, md=SMART_PUNCT_MD)
    def check_html(expected: str, par: DocParagraph, reason: str):
        bs = par_list_to_html_list(
            [par],
            settings=d.document.get_settings(),
            view_ctx=default_view_ctx,
        )
        self.assertEqual(expected.strip(), bs[0], reason)
    check_html(NO_SMART_PUNCT_HTML, main_par, "Default case: smart punct disabled")
    d.document.set_settings({"smart_punct": "true"})
    check_html(SMART_PUNCT_HTML, main_par, "Doc smart_punct: true")
    d.document.set_settings({"smart_punct": "false"})
    check_html(NO_SMART_PUNCT_HTML, main_par, "Doc smart_punct: false")
    second_par = DocParagraph.create(d.document, md=SMART_PUNCT_MD)
    check_html(
        NO_SMART_PUNCT_HTML, second_par, "Doc smart_punct: false; second par"
    )
    second_par.set_attr("smart_punct", "true")
    check_html(
        SMART_PUNCT_HTML,
        second_par,
        "Doc smart_punct: false; second par with smart_punct: true",
    )