File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,10 @@ def test_included_html_term_from_plain(html_escaping_bundle: FluentBundle):
217217 val , errs = html_escaping_bundle .format ("references-html-term-plain" )
218218 assertTypeAndValueEqual (val , "\u2068 -term-html\u2069 are great!" )
219219 assert type (errs [0 ]) is TypeError
220+ assert (
221+ errs [0 ].args [0 ]
222+ == "Escaper HtmlEscaper for term -term-html cannot be used from calling context with null_escaper escaper"
223+ )
220224
221225
222226def test_html_compound_message (html_escaping_bundle : FluentBundle ):
@@ -259,6 +263,10 @@ def test_html_message_attr_reference_from_plain(html_escaping_bundle: FluentBund
259263 assertTypeAndValueEqual (val , "Plain. \u2068 parent-plain.attr-html\u2069 " )
260264 assert len (errs ) == 1
261265 assert type (errs [0 ]) is TypeError
266+ assert (
267+ errs [0 ].args [0 ]
268+ == "Escaper HtmlEscaper for message parent-plain.attr-html cannot be used from calling context with null_escaper escaper"
269+ )
262270
263271
264272def test_html_message_attr_reference_from_html (html_escaping_bundle : FluentBundle ):
You can’t perform that action at this time.
0 commit comments