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

Brian Lloyd brian@digicool.com
Fri, 30 Nov 2001 10:32:11 -0500


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

Modified Files:
	testWSDLTools.py 
Log Message:
Minor cleanups, bug fixes and doc updates.


=== Packages/WebService/tests/testWSDLTools.py 1.2 => 1.3 ===
         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
@@ -34,10 +32,12 @@
         file.close()
         self.checkWSDL(wsdl)
 
+        md5hash = wsdl.getMd5Hash()
+        
         file = open(path, 'rb')
         data = file.read()
         file.close()
-        wsdl = WSDLReader().loadFromString(data)
+        wsdl = WSDLReader().loadFromString(data, md5hash)
         self.checkWSDL(wsdl)