summaryrefslogtreecommitdiff
path: root/tests/test_traversal.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-11-14 22:15:57 -0600
committerMichael Merickel <michael@merickel.org>2018-11-14 22:15:57 -0600
commit2f8ede09e52162e475aececf587b21e96a2b1a79 (patch)
treeb14ed0c012654af2b2a19d4043895816cb7021af /tests/test_traversal.py
parent78dcc6dff88829831ead187804ac9233eafab52e (diff)
downloadpyramid-2f8ede09e52162e475aececf587b21e96a2b1a79.tar.gz
pyramid-2f8ede09e52162e475aececf587b21e96a2b1a79.tar.bz2
pyramid-2f8ede09e52162e475aececf587b21e96a2b1a79.zip
move text_, bytes_ and ascii_ to pyramid.util and remove native_
Diffstat (limited to 'tests/test_traversal.py')
-rw-r--r--tests/test_traversal.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_traversal.py b/tests/test_traversal.py
index 252e99f6f..de712a6e8 100644
--- a/tests/test_traversal.py
+++ b/tests/test_traversal.py
@@ -4,7 +4,7 @@ from urllib.parse import quote
from pyramid.testing import cleanUp
-from pyramid.compat import text_, native_
+from pyramid.util import text_
class TraversalPathTests(unittest.TestCase):
@@ -87,15 +87,14 @@ class TraversalPathInfoTests(unittest.TestCase):
def test_highorder(self):
la = b'La Pe\xc3\xb1a'
- latin1 = native_(la)
+ latin1 = text_(la)
result = self._callFUT(latin1)
self.assertEqual(result, (text_(la, 'utf-8'),))
def test_highorder_undecodeable(self):
from pyramid.exceptions import URLDecodeError
- la = text_(b'La Pe\xc3\xb1a', 'utf-8')
- notlatin1 = native_(la)
+ notlatin1 = text_(b'La Pe\xc3\xb1a', 'utf-8')
self.assertRaises(URLDecodeError, self._callFUT, notlatin1)