#NEWLINE# def json_client( self , method , url , data = None , **headers ) : #NEWLINE# #INDENT# if ( not data ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# client_method = getattr ( self . client , method . lower ( ) ) #NEWLINE# return client_method ( url , json . dumps ( data ) , content_type = 'application/json' , ** headers )