aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_exceptions.py
diff options
context:
space:
mode:
authorBenjamin Trofatter <bentrofatter@gmail.com>2012-03-24 18:52:26 -0500
committerBenjamin Trofatter <bentrofatter@gmail.com>2012-03-24 18:52:26 -0500
commite8b7dd036c4c485b8fef030a8d49431dc7caa40c (patch)
tree82a340a30bb320bb026fb19c1343ec87e7851d4a /test/test_exceptions.py
parent4b395f679029b8375063e4408ca08a7a860cb99c (diff)
downloadexternal_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.py8
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&#39;привет&#39;}".encode(sys.getdefaultencoding(),
+ assert u"${u&#39;привет&#39;}".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&#39;&#x43F;&#x440;'\
- '&#x438;&#x432;&#x435;&#x442;&#39; + foobar}</div>' \
- in result_lines(l.get_template("foo.html").render().decode('utf-8'))
+ assert '${u&#39;&#x43F;&#x440;&#x438;&#x432;&#x435;'\
+ '&#x442;&#39; + foobar}' in \
+ result_lines(l.get_template("foo.html").render().decode('utf-8'))
def test_custom_tback(self):