#NEWLINE# def post_replace_result( self , score , outcome_opts = defaultdict ( ( lambda : None ) ) , result_data = None ) : #NEWLINE# #INDENT# "\n        POSTs the given score to the Tool Consumer with a replaceResult.\n\n        Returns OutcomeResponse object and stores it in self.outcome_request\n\n        OPTIONAL:\n            result_data must be a dictionary\n            Note: ONLY ONE of these values can be in the dict at a time,\n            due to the Canvas specification.\n\n            'text' : str text\n            'url' : str url\n        " #NEWLINE# return self . new_request ( outcome_opts ) . post_replace_result ( score , self )