[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP/tests - testHTTP.py:1.1.2.6.2.2
Jim Fulton
jim@zope.com
Tue, 26 Mar 2002 11:54:39 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP/tests
In directory cvs.zope.org:/tmp/cvs-serv4886/Zope/Publisher/HTTP/tests
Modified Files:
Tag: Zope3-publisher-refactor-branch
testHTTP.py
Log Message:
Got the BrowserPublisher to pass tests.
The remaining task (aside from writing more tests) is to get the
new server setup working. This should also get the server tests to pass.
=== Zope3/lib/python/Zope/Publisher/HTTP/tests/testHTTP.py 1.1.2.6.2.1 => 1.1.2.6.2.2 ===
from Zope.Publisher.HTTP.HTTPRequest import HTTPRequest
from Zope.Publisher.HTTP.HTTPResponse import HTTPResponse
-from Zope.Publisher.HTTP.BrowserPayload import BrowserRequestPayload, \
- BrowserResponsePayload
from Zope.Publisher.Publish import publish
from Zope.Publisher.DefaultPublication import DefaultPublication
-from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
-from Interface.Verify import verifyClass
+from Interface.Verify import verifyObject
from Interface.Implements import instancesOfObjectImplements
from StringIO import StringIO
@@ -127,8 +124,8 @@
def testBasicAuth(self):
from Zope.Publisher.HTTP.IHTTPCredentials import IHTTPCredentials
import base64
- verifyClass(IHTTPCredentials, HTTPRequest)
req = self._createRequest()
+ verifyObject(IHTTPCredentials, req)
lpq = req._authUserPW()
self.assertEquals(lpq, None)
env = {}