def METHOD_NAME(self) -> None:
    da = create_test_dataarray_attrs()
    with xarray.set_options(display_style="text"):
        text = da._repr_html_()
        assert text.startswith("<pre>")
        assert "&lt;xarray.DataArray &#x27;var1&#x27;" in text