def _reset_config(app):
 user = factories.Sysadmin()
 env = {'REMOTE_USER': user['name'].encode('ascii')}
 app.post(url=url_for(controller='admin', action='reset_config'), extra_environ=env)

def _reset_config ( app ) : user = factories . Sysadmin ( ) env = { 'REMOTE_USER' : user [ 'name' ] . encode ( 'ascii' ) } app . post ( url = url_for ( controller = 'admin' , action = 'reset_config' ) , extra_environ = env )
reset config via action .