From: Ben Darnell Date: Thu, 13 Jun 2013 16:14:52 +0000 (-0400) Subject: Add another small encoding test for xhtml_escape. X-Git-Tag: v3.1.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7faf57351eeafb720ddeb3408812cf2e3a3605e3;p=thirdparty%2Ftornado.git Add another small encoding test for xhtml_escape. --- diff --git a/tornado/test/escape_test.py b/tornado/test/escape_test.py index 90573c166..0370d77da 100644 --- a/tornado/test/escape_test.py +++ b/tornado/test/escape_test.py @@ -146,6 +146,9 @@ class EscapeTestCase(unittest.TestCase): ("<>&\"", "<>&""), ("&", "&amp;"), + + (u("<\u00e9>"), u("<\u00e9>")), + (b"<\xc3\xa9>", b"<\xc3\xa9>"), ] for unescaped, escaped in tests: self.assertEqual(utf8(xhtml_escape(unescaped)), utf8(escaped))