summaryrefslogtreecommitdiff
path: root/tests/test_httpexceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_httpexceptions.py')
-rw-r--r--tests/test_httpexceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_httpexceptions.py b/tests/test_httpexceptions.py
index 195496e2e..48c4a22f3 100644
--- a/tests/test_httpexceptions.py
+++ b/tests/test_httpexceptions.py
@@ -67,6 +67,12 @@ class Test__no_escape(unittest.TestCase):
def test_not_basestring(self):
self.assertEqual(self._callFUT(42), '42')
+ def test_bytes(self):
+ self.assertEqual(
+ self._callFUT(b'/La Pe\xc3\xb1a/{x}'),
+ b'/La Pe\xc3\xb1a/{x}'.decode('utf-8'),
+ )
+
def test_unicode(self):
class DummyUnicodeObject(object):
def __unicode__(self):