def test_setup_sanitizers(unresolved_settings): from kotti.sanitizers import _setup_sanitizers from kotti.sanitizers import minimal_html from kotti.sanitizers import no_html from kotti.sanitizers import xss_protection _setup_sanitizers(unresolved_settings) settings = unresolved_settings["kotti.sanitizers"] assert "minimal_html" in settings assert "no_html" in settings assert "xss_protection" in settings assert settings["minimal_html"] == minimal_html assert settings["no_html"] == no_html assert settings["xss_protection"] == xss_protection
def test_setup_sanitizers(unresolved_settings): from kotti.sanitizers import _setup_sanitizers from kotti.sanitizers import minimal_html from kotti.sanitizers import no_html from kotti.sanitizers import xss_protection _setup_sanitizers(unresolved_settings) settings = unresolved_settings[u'kotti.sanitizers'] assert u'minimal_html' in settings assert u'no_html' in settings assert u'xss_protection' in settings assert settings[u'minimal_html'] == minimal_html assert settings[u'no_html'] == no_html assert settings[u'xss_protection'] == xss_protection
def test_setup_sanitizers(unresolved_settings): from kotti.sanitizers import _setup_sanitizers from kotti.sanitizers import minimal_html from kotti.sanitizers import no_html from kotti.sanitizers import xss_protection _setup_sanitizers(unresolved_settings) settings = unresolved_settings["kotti.sanitizers"] assert "minimal_html" in settings assert "no_html" in settings assert "xss_protection" in settings assert settings["minimal_html"] == minimal_html assert settings["no_html"] == no_html assert settings["xss_protection"] == xss_protection