diff options
Diffstat (limited to 'test/test_exceptions.py')
-rw-r--r-- | test/test_exceptions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_exceptions.py b/test/test_exceptions.py index ea27dda..0ab8cf9 100644 --- a/test/test_exceptions.py +++ b/test/test_exceptions.py @@ -105,7 +105,7 @@ ${u'привет'} sys.getdefaultencoding(), 'htmlentityreplace') in html_error except ImportError: - assert u"3 ${u'привет'}".encode(sys.getdefaultencoding(), + assert u"${u'привет'}".encode(sys.getdefaultencoding(), 'htmlentityreplace') in html_error else: assert False, ("This function should trigger a CompileException, " @@ -204,9 +204,9 @@ ${foobar} result_lines(l.get_template("foo.html").render().decode('utf-8')) except ImportError: - assert '<div class="highlight">2 ${u'пр'\ - 'ивет' + foobar}</div>' \ - in result_lines(l.get_template("foo.html").render().decode('utf-8')) + assert '${u'приве'\ + 'т' + foobar}' in \ + result_lines(l.get_template("foo.html").render().decode('utf-8')) def test_custom_tback(self): |