[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/tests - test_contents.py:1.20
Albertas Agejevas
alga@codeworks.lt
Mon, 9 Jun 2003 12:39:43 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/container/tests
In directory cvs.zope.org:/tmp/cvs-serv9936/src/zope/app/browser/container/tests
Modified Files:
test_contents.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/container/tests/test_contents.py 1.19 => 1.20 ===
--- Zope3/src/zope/app/browser/container/tests/test_contents.py:1.19 Thu Jun 5 16:59:47 2003
+++ Zope3/src/zope/app/browser/container/tests/test_contents.py Mon Jun 9 12:39:11 2003
@@ -303,7 +303,7 @@
from zope.app.browser.container.contents import Contents
from zope.publisher.browser import TestRequest
request = TestRequest()
- request.user = Principal()
+ request.setUser(Principal())
return Contents(container, request)
class Test(BaseTestContentsBrowserView, TestCase):