

def test_parse_read_result_response_xml(self):
    '\n        Should parse readResult response XML.\n        '
    read_xml = self.response_xml.replace('<replaceResultResponse/>', '<readResultResponse>\n<result>\n<resultScore>\n<language>en</language>\n<textString>0.91</textString>\n</resultScore>\n</result>\n</readResultResponse>')
    fake = self.mock_response(read_xml)
    response = OutcomeResponse.from_post_response(fake, read_xml)
    self.assertTrue(response.is_success())
    self.assertEqual(response.code_major, 'success')
    self.assertEqual(response.severity, 'status')
    self.assertEqual(response.description, '')
    self.assertEqual(response.message_ref_identifier, '123456789')
    self.assertEqual(read_xml.score, '0.91')

dataset/ETHPy150Open tophatmonocle/ims_lti_py/tests/outcome_response_test.py TestOutcomeResponse.test_parse_read_result_response_xml/VarMisuse@104/206 `response`->`read_xml`