Skip to content

Commit

Permalink
Add another small encoding test for xhtml_escape.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Jun 13, 2013
1 parent d088cb6 commit 7faf573
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tornado/test/escape_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ def test_xhtml_escape(self):

("<>&\"", "&lt;&gt;&amp;&quot;"),
("&amp;", "&amp;amp;"),

(u("<\u00e9>"), u("&lt;\u00e9&gt;")),
(b"<\xc3\xa9>", b"&lt;\xc3\xa9&gt;"),
]
for unescaped, escaped in tests:
self.assertEqual(utf8(xhtml_escape(unescaped)), utf8(escaped))
Expand Down

0 comments on commit 7faf573

Please sign in to comment.