[Zope-CVS] CVS: Packages/WebService/tests - testWSDLTools.py:1.2

Brian Lloyd brian@digicool.com
Thu, 29 Nov 2001 16:40:49 -0500

Update of /cvs-repository/Packages/WebService/tests
In directory cvs.zope.org:/tmp/cvs-serv32741/tests

Modified Files:
Log Message:
Added a custom urlopen() implementation to Transports that implements 
socket timeout. That makes it possible to avoid blocking forever on 
non-messaging related network tasks (like retrieving WSDL or XMLSchema 
documents from URLs).

=== Packages/WebService/tests/testWSDLTools.py 1.1 => 1.2 ===
     """Test parsing and manipulating WSDL service descriptions."""
+    def testWSDLLoadFromUrl(self):
+        """Make sure our custom urlopen() with timeout works."""
+        from WebService.WSDLTools import WSDLReader
+        # We just want to make sure no errors occur.
+        address = 'http://www.xmethods.net/sd/interop/ApacheInterop11.wsdl'
+        wsdl = WSDLReader().loadFromURL(address)
     def testWSDLReaderMethods(self):
         """Test loading a document using the WSDLReader interfaces."""
         from WebService.WSDLTools import WSDLReader