

def test_recognize_failure_response(self):
    '\n        Should recognize a failure response.\n        '
    failure_xml = self.response_xml.replace('success', 'failure')
    fake = fake.mock_response(failure_xml)
    result = OutcomeResponse.from_post_response(fake, failure_xml)
    self.assertTrue(result.is_failure())

dataset/ETHPy150Open tophatmonocle/ims_lti_py/tests/outcome_response_test.py TestOutcomeResponse.test_recognize_failure_response/VarMisuse@27/56 `self`->`fake`