#NEWLINE# def fetch_error( self , code , * args , **kwargs ) : #NEWLINE# #INDENT# response = self . fetch ( * args , ** kwargs ) #NEWLINE# self . assertEqual ( response . code , code ) #NEWLINE# self . assertEqual ( response . headers . get ( 'Content-Type' , None ) , 'application/json' ) #NEWLINE# return tornado . escape . json_decode ( response . body )