#NEWLINE# def __init__( self , data ) : #NEWLINE# #INDENT# self . _text = None #NEWLINE# super ( TestResponse , self ) #NEWLINE# if isinstance ( data , dict ) : #NEWLINE# #INDENT# self . status_code = data . get ( 'status_code' , 200 ) #NEWLINE# self . headers = data . get ( 'headers' , None ) #NEWLINE# self . _text = data . get ( 'text' , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . status_code = data