diff options
author | Benjamin Trofatter <bentrofatter@gmail.com> | 2012-03-24 18:52:26 -0500 |
---|---|---|
committer | Benjamin Trofatter <bentrofatter@gmail.com> | 2012-03-24 18:52:26 -0500 |
commit | e8b7dd036c4c485b8fef030a8d49431dc7caa40c (patch) | |
tree | 82a340a30bb320bb026fb19c1343ec87e7851d4a /test/test_exceptions.py | |
parent | 4b395f679029b8375063e4408ca08a7a860cb99c (diff) | |
download | external_python_mako-e8b7dd036c4c485b8fef030a8d49431dc7caa40c.tar.gz external_python_mako-e8b7dd036c4c485b8fef030a8d49431dc7caa40c.tar.bz2 external_python_mako-e8b7dd036c4c485b8fef030a8d49431dc7caa40c.zip |
Fixed two tests in test_exceptions
Corrected the success conditions of test_utf8_html_error_template and
test_utf8_format_exceptions when testing in py2.x without pygments to
match the currently expected output.
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): |