Beispiel #1
0
 def test_format_message_with_two_args(self):
     msg = SoapMessage('urn:schemas-upnp-org:service:ConnectionManager:1', 'AnOperation')
     msg.set_arg("Arg1", "0")
     msg.set_arg("Arg2", "0")
     self.assertEqual('AnOperation(Arg1=0, Arg2=0)', format_soap_message(msg))
Beispiel #2
0
 def open(self, req, data=None, timeout=0):
     response = SoapMessage('urn:schemas-upnp-org:service:ConnectionManager:1',
                            'GetCurrentConnectionIDsResponse')
     return StringIO(response.tostring())