def test_soap12_actor_parsing(self): envelope = soap12.Envelope.parsexml(SOAP12_ERROR_ROLE) code, message, actor = soap12.parse_fault_message(envelope.Body.Fault) assert_equals('env:Sender', code) assert_equals('\nMessage does not have necessary info\n', message) assert_equals('http://gizmos.com/order', actor)
def test_soap12_noactor_parsing(self): envelope = soap12.Envelope.parsexml(SOAP12_ERROR_NOROLE) code, message, actor = soap12.parse_fault_message(envelope.Body.Fault) assert_equals('env:Sender', code) assert_equals('\nMessage does not have necessary info\n', message) assert_none(actor)
def test_soap12_actor_parsing(self): envelope = soap12.Envelope.parsexml(SOAP12_ERROR_ROLE) code, message, actor = soap12.parse_fault_message(envelope.Body.Fault) assert_equals("env:Sender", code) assert_equals("\nMessage does not have necessary info\n", message) assert_equals("http://gizmos.com/order", actor)
def test_soap12_noactor_parsing(self): envelope = soap12.Envelope.parsexml(SOAP12_ERROR_NOROLE) code, message, actor = soap12.parse_fault_message(envelope.Body.Fault) self.assertEqual('env:Sender', code) self.assertEqual('\nMessage does not have necessary info\n', message) self.assertIsNone(actor)