[Zope3-checkins] CVS: Zope3/src/zope/app/publication/tests - test_browserpublication.py:1.16

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


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

Modified Files:
	test_browserpublication.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/publication/tests/test_browserpublication.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/publication/tests/test_browserpublication.py:1.15	Fri Jun  6 16:25:30 2003
+++ Zope3/src/zope/app/publication/tests/test_browserpublication.py	Mon Jun  9 12:39:14 2003
@@ -311,7 +311,7 @@
         # With a normal request, we should get a body:
         output = StringIO()
         request = TestRequest(StringIO(''), output, {'PATH_INFO': '/'})
-        request.user = User()
+        request.setUser(User())
         request.response.setBody("spam")
         pub.afterCall(request)
         request.response.outputBody()
@@ -327,7 +327,7 @@
         # But with a HEAD request, the body should be empty
         output = StringIO()
         request = TestRequest(StringIO(''), output, {'PATH_INFO': '/'})
-        request.user = User()
+        request.setUser(User())
         request.method = 'HEAD'
         request.response.setBody("spam")
         pub.afterCall(request)