[Zope3-checkins] CVS: Zope3/src/zope/publisher/tests -
test_http.py:1.22.10.1
Marius Gedminas
marius at pov.lt
Fri Mar 19 13:51:27 EST 2004
Update of /cvs-repository/Zope3/src/zope/publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv26650/src/zope/publisher/tests
Modified Files:
Tag: mgedmin-events2-branch
test_http.py
Log Message:
Added IParticipation and replaced the lists of principals in IInteraction with
a list of participations. Made BaseRequest an IParticipation and replaced
request.user with request.principal everywhere.
=== Zope3/src/zope/publisher/tests/test_http.py 1.22 => 1.22.10.1 ===
--- Zope3/src/zope/publisher/tests/test_http.py:1.22 Thu Feb 5 17:52:36 2004
+++ Zope3/src/zope/publisher/tests/test_http.py Fri Mar 19 13:50:56 2004
@@ -235,11 +235,11 @@
as.provideAdapter(IPrincipal, ILoggingInfo, [PrincipalLoggingStub])
task = HTTPTaskStub()
req = self._createRequest(outstream=task)
- req.setUser(UserStub("jim"))
+ req.setPrincipal(UserStub("jim"))
self.assert_(not req.response._outstream.auth_user_name)
req = self._createRequest(outstream=task)
req.response.setHTTPTransaction(task)
- req.setUser(UserStub("jim"))
+ req.setPrincipal(UserStub("jim"))
self.assertEquals(req.response.http_transaction.auth_user_name, "jim")
def testIPresentationRequest(self):
More information about the Zope3-Checkins
mailing list