Commit 055846bf authored by Craig Weber's avatar Craig Weber

Fix tests broken by disapperance of http://www.webservicex.net/uszip.asmx?WSDL

parent 34711b3b
Pipeline #22490444 passed with stage
in 4 minutes and 16 seconds
......@@ -5,28 +5,16 @@ import soap
class SOAPTest(TestCase):
def test_basic_soap_method_call(self):
wsdl = 'http://www.webservicex.net/uszip.asmx?WSDL'
wsdl = 'http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL'
client = soap.get_client(wsdl, 'LOCATIONS')
client.set_options(port='USZipSoap')
resp = client.service.GetInfoByZIP('10305')
self.assertEquals(resp.NewDataSet.Table.CITY, 'Staten Island')
self.assertEquals(resp.NewDataSet.Table.STATE, 'NY')
client.set_options(port='NumberConversionSoap')
resp = client.service.NumberToWords('42')
self.assertEquals(str(resp).strip(), 'forty two')
class SOAPProxyTest(TestCase):
def test_soap_with_proxy(self):
""" Set sandbox/settings to use """
if settings.PROXY_URL:
wsdl = 'http://www.webservicex.net/uszip.asmx?WSDL'
wsdl = 'http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL'
soap.get_client(wsdl, 'LOCATIONS')
def test_private_soap_with_proxy(self):
""" Intended for local and private use only
Set SOAP_PROXY_URL in sandbox/settings too.
"""
private_ip = ''
if not private_ip:
return
wsdl = 'http://{}/TAXCCH/Service3.5.svc?singleWsdl'.format(private_ip)
soap.get_client(wsdl, 'CCH')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment