

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

dataset/ETHPy150Open tophatmonocle/ims_lti_py/tests/outcome_response_test.py TestOutcomeResponse.test_parse_delete_result_response_xml/original