def _test_route_req(route, env, abs_path=False): matcher, coll = route.is_handling(env['REL_REQUEST_URI']) if not matcher: return the_router = ArchivalRouter([route], abs_path=abs_path) req = the_router.parse_request(route, env, matcher, coll, env['REL_REQUEST_URI'], abs_path) varlist = vars(req) the_dict = dict((k, varlist[k]) for k in ('request_uri', 'wb_prefix', 'wb_url', 'coll')) pprint.pprint(the_dict)