Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)