def test_literal(): assert (htmlfill.render('<form:error name="foo" />', errors={'foo': htmlfill.htmlliteral('<test>')}) == '<span class="error-message"><test></span><br />\n')