#NEWLINE# def mock_http_get( self , content , status_code = 200 ) : #NEWLINE# #INDENT# if isinstance ( content , dict ) : #NEWLINE# #INDENT# content = json . dumps ( self ) #NEWLINE# #UNINDENT# self . _client . http_client . get = mock . MagicMock ( return_value = FakeResponse ( status_code , content ) ) #NEWLINE# return self . _client . http_client . get