def testIssue48Regression(self): """Regression test for issue 48 on the issue tracker.""" buf = SoapBuffer() buf.write(OUTGOING_HTTP_HEADERS_BLOCK) buf.write(OUTGOING_SOAP_BLOCK) buf.write(INCOMING_HTTP_HEADERS_BLOCK) buf.write(INCOMING_SOAP_BLOCK) self.assertEqual(OUTGOING_HTTP_HEADERS_BLOCK.strip(), buf.GetHeadersOut()) self.assertEqual(OUTGOING_SOAP_BLOCK.strip(), buf.GetSoapOut()) self.assertEqual(INCOMING_HTTP_HEADERS_BLOCK.strip(), buf.GetHeadersIn()) self.assertEqual(INCOMING_SOAP_BLOCK.strip(), buf.GetSoapIn())
def testIssue48Regression(self): """Regression test for issue 48 on the issue tracker. Tests to make sure that if your SOAP message contains a line of asterisks 72 or longer in a row, the SOAP buffer can still parse it. If you have a line in the SOAP messages containing only exactly 72 asterisks, the library will still fail. """ buf = SoapBuffer() buf.write(OUTGOING_HTTP_HEADERS_BLOCK) buf.write(OUTGOING_SOAP_BLOCK) buf.write(INCOMING_HTTP_HEADERS_BLOCK) buf.write(INCOMING_SOAP_BLOCK) self.assertEqual(OUTGOING_HTTP_HEADERS_BLOCK.strip(), buf.GetHeadersOut()) self.assertEqual(OUTGOING_SOAP_BLOCK.strip(), buf.GetSoapOut()) self.assertEqual(INCOMING_HTTP_HEADERS_BLOCK.strip(), buf.GetHeadersIn()) self.assertEqual(INCOMING_SOAP_BLOCK.strip(), buf.GetSoapIn())
def testGetFaultAsDict_ETree_PrettyOn(self): """Tests the GetFaultAsDict function.""" self._RunGetFaultAsDict(SoapBuffer('2', True))
def testGetFaultAsDict_PyXML_PrettyOff(self): """Tests the GetFaultAsDict function.""" self._RunGetFaultAsDict(SoapBuffer('1', False))