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

Albertas Agejevas alga@codeworks.lt
Mon, 9 Jun 2003 12:39:43 -0400


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

Modified Files:
	test_unauthorized.py 
Log Message:
Make authenticated principal name appear in the hit logs.

This forced us to do some marginal hockery that is best removed when the 
HTTP server machinery is refactored.  More info in the comments.


=== Zope3/src/zope/app/browser/exception/tests/test_unauthorized.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/exception/tests/test_unauthorized.py:1.6	Fri Jun  6 16:44:27 2003
+++ Zope3/src/zope/app/browser/exception/tests/test_unauthorized.py	Mon Jun  9 12:39:12 2003
@@ -50,7 +50,7 @@
             pass
         request = TestRequest('/')
         authservice = DummyAuthService()
-        request.user = ContextWrapper(DummyPrincipal(23), authservice)
+        request.setUser(ContextWrapper(DummyPrincipal(23), authservice))
         u = Unauthorized(exception, request)
         u.issueChallenge()