[Zope3-checkins] CVS: Zope3/src/zope/app/browser/exception/tests - test_unauthorized.py:1.9.6.1

Jim Fulton jim at zope.com
Mon Sep 8 15:22:26 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/exception/tests
In directory cvs.zope.org:/tmp/cvs-serv20092/src/zope/app/browser/exception/tests

Modified Files:
      Tag: parentgeddon-branch
	test_unauthorized.py 
Log Message:
Checking in work in progress on parentgeddon-branch so Fred can help
me to get the tests passing.  Specific log entries will be provided
when we merge this into the head.


=== Zope3/src/zope/app/browser/exception/tests/test_unauthorized.py 1.9 => 1.9.6.1 ===
--- Zope3/src/zope/app/browser/exception/tests/test_unauthorized.py:1.9	Tue Aug 12 15:14:56 2003
+++ Zope3/src/zope/app/browser/exception/tests/test_unauthorized.py	Mon Sep  8 14:21:25 2003
@@ -19,8 +19,8 @@
 
 from unittest import TestCase, main, makeSuite
 from zope.publisher.browser import TestRequest
-from zope.app.context import ContextWrapper
 from zope.app.interfaces.security import IAuthenticationService, IPrincipal
+from zope.app.container.contained import contained
 from zope.interface import implements
 from zope.app.browser.exception.unauthorized import Unauthorized
 
@@ -62,7 +62,7 @@
             pass
         request = TestRequest('/')
         authservice = DummyAuthService()
-        request.setUser(ContextWrapper(DummyPrincipal(23), authservice))
+        request.setUser(contained(DummyPrincipal(23), authservice))
         u = Unauthorized(exception, request)
         u.issueChallenge()
 
@@ -82,8 +82,8 @@
         request = TestRequest('/')
         authservice = DummyAuthService()
         psrc = DummyPrincipalSource()
-        psrc = ContextWrapper(psrc, authservice)
-        request.setUser(ContextWrapper(DummyPrincipal(23), psrc))
+        psrc = contained(psrc, authservice)
+        request.setUser(contained(DummyPrincipal(23), psrc))
         u = Unauthorized(exception, request)
         u.issueChallenge()
 




More information about the Zope3-Checkins mailing list