Permalink
Browse files

changed name of new fn to add_route_subwsgi

  • Loading branch information...
1 parent c73b462 commit ee4df3a4e2140a771b528a19db2ce7215922212b Bayle Shanks committed Feb 2, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 pyramid/config.py
  2. +4 −4 pyramid/tests/test_config.py
View
@@ -1769,7 +1769,7 @@ def add_route(self,
pregenerator=pregenerator)
@action_method
- def add_route_wsgi(self,
+ def add_route_subwsgi(self,
name,
pattern,
app,
@@ -1852,15 +1852,15 @@ def test_get_routes_mapper_already_registered(self):
result = config.get_routes_mapper()
self.assertEqual(result, mapper)
- def test_add_route_wsgi(self):
+ def test_add_route_subwsgi(self):
from pyramid.wsgi import wsgiapp2
def dummyapp(environ, start_response):
""" """
config = self._makeOne(autocommit=True)
- route = config.add_route_wsgi('name', 'path*subpath', dummyapp)
+ route = config.add_route_subwsgi('name', 'path*subpath', dummyapp)
self._assertRoute(config, 'name', 'path*subpath')
self.assertEqual(route.name, 'name')
request_type = self._getRouteRequestIface(config, 'name')
@@ -1870,7 +1870,7 @@ def dummyapp(environ, start_response):
self.assertEqual(viewCallable(context, request), wsgiapp2(dummyapp)(context, request))
- def test_add_route_wsgi_and_route(self):
+ def test_add_route_subwsgi_and_route(self):
def dummyapp(environ, start_response):
"""Hello world WSGI"""
status = '200 OK'
@@ -1886,7 +1886,7 @@ def __call__(self, status, headers):
self.headers = headers
config = self._makeOne(autocommit=True)
- route = config.add_route_wsgi('name', '/{a}/2/3*subpath', dummyapp)
+ route = config.add_route_subwsgi('name', '/{a}/2/3*subpath', dummyapp)
from pyramid.router import Router
router = Router(config.registry)

0 comments on commit ee4df3a

Please sign in to comment.