

def test_parse_replace_result_response_xml(self):
    '\n        Should parse replaceResult response XML.\n        '
    fake = self.mock_response(self.response_xml)
    response = OutcomeResponse.from_post_response(fake, self.response_xml)
    self.assertTrue(response.is_success())
    self.assertEqual(response.code_major, 'success')
    self.assertEqual(response.severity, 'status')
    self.assertEqual(response.description, '')
    self.assertEqual(self.message_ref_identifier, '123456789')
    self.assertEqual(response.operation, 'replaceResult')
    self.assertEqual(response.score, None)

dataset/ETHPy150Open tophatmonocle/ims_lti_py/tests/outcome_response_test.py TestOutcomeResponse.test_parse_replace_result_response_xml/VarMisuse@84/124 `response`->`self`