#NEWLINE# def _runjs_request( self , js_source , endpoint = None , params = None , headers = None ) : #NEWLINE# #INDENT# query = { #NEWLINE# #INDENT# 'url' : self . mockurl ( 'jsrender' ) , #NEWLINE# 'script' : 1 , #NEWLINE# 'js_source' : js_source , #NEWLINE# #UNINDENT# } #NEWLINE# query . update ( ( params or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# return self . request ( query , endpoint = endpoint , headers = headers )