diff options
author | Jelmer Vernooij <jelmer@jelmer.uk> | 2019-03-07 02:51:12 -0800 |
---|---|---|
committer | Chris Dent <chris.dent@gmail.com> | 2019-03-07 10:51:12 +0000 |
commit | 1cccef8ca1257b36d33ac48563b3ea996575c550 (patch) | |
tree | 25a4585152efe744be6e65fefb436fcaf0b21a5b /tests | |
parent | 4bd9871effb3192fa1973ef2cafa1923eaa0ff01 (diff) | |
download | paste-git-1cccef8ca1257b36d33ac48563b3ea996575c550.tar.gz |
Fix quoting of bytestrings. (#23)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_util/test_quoting.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_util/test_quoting.py b/tests/test_util/test_quoting.py index 5f5e0a8..6df1139 100644 --- a/tests/test_util/test_quoting.py +++ b/tests/test_util/test_quoting.py @@ -20,6 +20,8 @@ class TestQuoting(unittest.TestCase): '') self.assertEqual(quoting.html_quote('<hey!>'), '<hey!>') + self.assertEqual(quoting.html_quote(b'<hey!>'), + b'<hey!>') if six.PY3: self.assertEqual(quoting.html_quote(u'<\u1029>'), u'<\u1029>') |