summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-09-25 03:04:14 -0400
committerChris McDonough <chrism@plope.com>2011-09-25 03:04:14 -0400
commitf4bdf9e8a7e9598042c53d96f1539b431880ec3f (patch)
tree6929e44397d6a40bd595f82fdf69dbf6719d5ff7
parent884807ee7de11b1d72a17112519e2f1669cd9726 (diff)
downloadpyramid-f4bdf9e8a7e9598042c53d96f1539b431880ec3f.tar.gz
pyramid-f4bdf9e8a7e9598042c53d96f1539b431880ec3f.tar.bz2
pyramid-f4bdf9e8a7e9598042c53d96f1539b431880ec3f.zip
fix integration tests
-rw-r--r--pyramid/tests/test_integration.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pyramid/tests/test_integration.py b/pyramid/tests/test_integration.py
index 1a723c0d7..0c17b88ce 100644
--- a/pyramid/tests/test_integration.py
+++ b/pyramid/tests/test_integration.py
@@ -7,7 +7,7 @@ from pyramid.wsgi import wsgiapp
from pyramid.view import view_config
from pyramid.static import static_view
from pyramid.compat import text_
-from pyramid.compat import native_
+from pyramid.compat import url_quote
from zope.interface import Interface
@@ -73,7 +73,8 @@ class TestStaticAppBase(IntegrationBase):
_assertBody(res.body, os.path.join(here, 'fixtures/static/.hiddenfile'))
def test_highchars_in_pathelement(self):
- res = self.testapp.get('/static/héhé/index.html', status=200)
+ url = url_quote('/static/héhé/index.html')
+ res = self.testapp.get(url, status=200)
_assertBody(
res.body,
os.path.join(here,
@@ -81,7 +82,8 @@ class TestStaticAppBase(IntegrationBase):
)
def test_highchars_in_filename(self):
- res = self.testapp.get('/static/héhé.html', status=200)
+ url = url_quote('/static/héhé.html')
+ res = self.testapp.get(url, status=200)
_assertBody(
res.body,
os.path.join(here,