def METHOD_NAME(tmp_path):
    t = Table()
    t["a"] = [1, 2, 3, 4, 5]
    t["b"] = ["<b>a</b>", "b", "c", "d", "e"]
    t["a"].unit = "m"
    tmpfile = tmp_path / "test.html"
    t.write(
        tmpfile,
        format="jsviewer",
        table_id="test",
        max_lines=3,
        jskwargs={"display_length": 5},
        table_class="display hover",
        htmldict=dict(raw_html_cols="b"),
    )
    ref = REFERENCE % dict(
        lines=format_lines(t["a"][:3], t["b"][:3]),
        table_class="display hover",
        table_id="test",
        length="5",
        display_length="5, 10, 25, 50, 100, 500, 1000",
        datatables_css_url=(
            "https://cdn.datatables.net/1.10.12/css/jquery.dataTables.css"
        ),
        datatables_js_url=(
            "https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"
        ),
        jquery_url="https://code.jquery.com/" + JQUERY_MIN_JS,
    )
    with open(tmpfile) as f:
        assert f.read().strip() == ref.strip()