[Zope3-checkins] CVS: Zope3/src/zope/app/browser/exception/tests -
test_unauthorized.py:1.11.2.1
Marius Gedminas
marius at pov.lt
Fri Mar 19 13:51:14 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/exception/tests
In directory cvs.zope.org:/tmp/cvs-serv26650/src/zope/app/browser/exception/tests
Modified Files:
Tag: mgedmin-events2-branch
test_unauthorized.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/app/browser/exception/tests/test_unauthorized.py 1.11 => 1.11.2.1 ===
--- Zope3/src/zope/app/browser/exception/tests/test_unauthorized.py:1.11 Fri Feb 13 22:27:13 2004
+++ Zope3/src/zope/app/browser/exception/tests/test_unauthorized.py Fri Mar 19 13:50:11 2004
@@ -60,7 +60,7 @@
pass
request = TestRequest('/')
authservice = DummyAuthService()
- request.setUser(contained(DummyPrincipal(23), authservice))
+ request.setPrincipal(contained(DummyPrincipal(23), authservice))
u = Unauthorized(exception, request)
u.issueChallenge()
@@ -81,7 +81,7 @@
authservice = DummyAuthService()
psrc = DummyPrincipalSource()
psrc = contained(psrc, authservice)
- request.setUser(contained(DummyPrincipal(23), psrc))
+ request.setPrincipal(contained(DummyPrincipal(23), psrc))
u = Unauthorized(exception, request)
u.issueChallenge()
More information about the Zope3-Checkins
mailing list