summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/test_wsgi.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-22 00:12:45 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-22 00:12:45 +0000
commit6ecdbc409d2109a9e7fc5367c64067f0400f07cc (patch)
tree37a01b7f6d9c9fe10f8201bf67d89dfd480e9072 /repoze/bfg/tests/test_wsgi.py
parent352276d69311cbd2ec4985b4e809b607102c2dab (diff)
downloadpyramid-6ecdbc409d2109a9e7fc5367c64067f0400f07cc.tar.gz
pyramid-6ecdbc409d2109a9e7fc5367c64067f0400f07cc.tar.bz2
pyramid-6ecdbc409d2109a9e7fc5367c64067f0400f07cc.zip
- Adding ``*path_info`` to a route no longer changes the PATH_INFO for
a request that matches using URL dispatch. This feature was only there to service the ``repoze.bfg.wsgi.wsgiapp2`` decorator and it did it wrong; use ``*subpath`` instead now. - The interface generation performed for named request factories had the wrong base classes.
Diffstat (limited to 'repoze/bfg/tests/test_wsgi.py')
-rw-r--r--repoze/bfg/tests/test_wsgi.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/repoze/bfg/tests/test_wsgi.py b/repoze/bfg/tests/test_wsgi.py
index 9d8a85630..5d3ec1faa 100644
--- a/repoze/bfg/tests/test_wsgi.py
+++ b/repoze/bfg/tests/test_wsgi.py
@@ -17,15 +17,7 @@ class WSGIApp2Tests(unittest.TestCase):
from repoze.bfg.wsgi import wsgiapp2
return wsgiapp2(app)
- def test_decorator_traversed_is_None(self):
- context = DummyContext()
- request = DummyRequest()
- request.traversed = None
- decorator = self._callFUT(dummyapp)
- response = decorator(context, request)
- self.assertEqual(response, dummyapp)
-
- def test_decorator_traversed_not_None_with_subpath_and_view_name(self):
+ def test_decorator_with_subpath_and_view_name(self):
context = DummyContext()
request = DummyRequest()
request.traversed = ['a', 'b']
@@ -39,7 +31,7 @@ class WSGIApp2Tests(unittest.TestCase):
self.assertEqual(request.environ['PATH_INFO'], '/subpath')
self.assertEqual(request.environ['SCRIPT_NAME'], '/foo/b/view_name')
- def test_decorator_traversed_not_None_with_subpath_no_view_name(self):
+ def test_decorator_with_subpath_no_view_name(self):
context = DummyContext()
request = DummyRequest()
request.traversed = ['a', 'b']
@@ -53,7 +45,7 @@ class WSGIApp2Tests(unittest.TestCase):
self.assertEqual(request.environ['PATH_INFO'], '/subpath')
self.assertEqual(request.environ['SCRIPT_NAME'], '/foo/b')
- def test_decorator_traversed_not_None_no_subpath_with_view_name(self):
+ def test_decorator_no_subpath_with_view_name(self):
context = DummyContext()
request = DummyRequest()
request.traversed = ['a', 'b']