Exemple #1
0
def consume(app, path):
    request = app.request(webob.Request.blank(path).environ)
    return traject_consume(app, request), request
Exemple #2
0
def consume(mount, path, parameters=None):
    if parameters:
        path += '?' + urlencode(parameters, True)
    request = mount.request(webob.Request.blank(path).environ)
    return traject_consume(mount, request), request
Exemple #3
0
def consume(mount, path, parameters=None):
    if parameters:
        path += '?' + urlencode(parameters, True)
    request = mount.request(webob.Request.blank(path).environ)
    return traject_consume(mount, request), request
Exemple #4
0
def consume(app, path):
    request = app.request(webob.Request.blank(path).environ)
    return traject_consume(app, request), request