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):
217
217
val , errs = html_escaping_bundle .format ("references-html-term-plain" )
218
218
assertTypeAndValueEqual (val , "\u2068 -term-html\u2069 are great!" )
219
219
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
+ )
220
224
221
225
222
226
def test_html_compound_message (html_escaping_bundle : FluentBundle ):
@@ -259,6 +263,10 @@ def test_html_message_attr_reference_from_plain(html_escaping_bundle: FluentBund
259
263
assertTypeAndValueEqual (val , "Plain. \u2068 parent-plain.attr-html\u2069 " )
260
264
assert len (errs ) == 1
261
265
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
+ )
262
270
263
271
264
272
def test_html_message_attr_reference_from_html (html_escaping_bundle : FluentBundle ):
You can’t perform that action at this time.
0 commit comments