#NEWLINE# def set_mock( self , service , method ) : #NEWLINE# #INDENT# 'Create a mock and return the mock object for the specific API call.\n\n        :param service: API service to mock\n        :param method: API method to mock\n        ' #NEWLINE# _mock = mock . MagicMock ( ) #NEWLINE# self . mocked [ _mock_key ( service , method ) ] = _mock #NEWLINE# return _mock