def submit_and_follow(app, form, extra_environ=None, name=None, value=None, **args):
 response = webtest_submit(form, name, value=value, status=302, extra_environ=extra_environ, **args)
 return app.get(url=response.headers['Location'], extra_environ=extra_environ)

def submit_and_follow ( app , form , extra_environ = None , name = None , value = None , ** args ) : response = webtest_submit ( form , name , value = value , status = 302 , extra_environ = extra_environ , ** args ) return app . get ( url = response . headers [ 'Location' ] , extra_environ = extra_environ )
call webtest_submit with name/value passed expecting a redirect and return the response from following that redirect .