'The happy path for LTI 2.0 PUT that sets a score'

def test_lti20_put_set_score_success(self):

    self.setup_system_xmodule_mocks_for_lti20_request_test()
    mock_request = self.get_signed_lti20_mock_request(self.GOOD_JSON_PUT)
    response = self.xmodule.lti_2_0_result_rest_handler(mock_request, 'user/abcd')
    self.assertEqual(response.status_code, 200)
    self.assertEqual(self.xmodule.module_score, 0.1)
    self.assertEqual(self.xmodule.score_comment, u'\u0ca0\u76ca\u0ca0')
    ((_, evt_type, called_grade_obj), _) = self.system.publish.call_args
    self.assertEqual(evt_type, 'grade')
    self.assertEqual(called_grade_obj, {'user_id': self.USER_STANDIN.id, 'value': 0.1, 'max_value': 1.0})
