def call_auth(auth_name, context, **kwargs):
 assert ('user' in context), 'Test methods must put a user name in the context dict'
 assert ('model' in context), 'Test methods must put a model in the context dict'
 return logic.check_access(auth_name, context, data_dict=kwargs)

def call_auth ( auth_name , context , ** kwargs ) : assert ( 'user' in context ) , 'Test methods must put a user name in the context dict' assert ( 'model' in context ) , 'Test methods must put a model in the context dict' return logic . check_access ( auth_name , context , data_dict = kwargs )
call the named ckan .