[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP/tests - testHTTP.py:1.1.2.6

Jim Fulton jim@zope.com
Tue, 5 Mar 2002 16:43:24 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP/tests
In directory cvs.zope.org:/tmp/cvs-serv2132/Zope/Publisher/HTTP/tests

Modified Files:
      Tag: Zope-3x-branch
	testHTTP.py 
Log Message:
Hold on to your butts!

Major refactoring of Interface package to clean up the interfaces and
module structure.

Note especially, to verify interface implementstions,
use verifyObject or verifyClass from the Interface.Verify module:

from Interface.Verify import verifyClass

verifyClass(ISomeInterface, SomeClass)



=== Zope3/lib/python/Zope/Publisher/HTTP/tests/testHTTP.py 1.1.2.5 => 1.1.2.6 ===
 from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
 
-from Interface import verify, instancesOfObjectImplements
+from Interface.Verify import verifyClass
+from Interface.Implements import instancesOfObjectImplements
 
 from StringIO import StringIO
 
@@ -131,7 +132,7 @@
     def testBasicAuth(self):
         from Zope.Publisher.HTTP.IHTTPCredentials import IHTTPCredentials
         import base64
-        verify(IHTTPCredentials, HTTPRequest)
+        verifyClass(IHTTPCredentials, HTTPRequest)
         req = self._createRequest()
         lpq = req._authUserPW()
         self.assertEquals(lpq, None)