#NEWLINE# def mock_response( self , mock , body , code ) : #NEWLINE# #INDENT# result = Mock ( ) #NEWLINE# result . content = body #NEWLINE# result . status_code = code #NEWLINE# mock . request = Mock ( return_value = mock )