[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/tests - BaseTestIPublicationRequest.py:1.3 TestPublication.py:1.3
Jim Fulton
jim@zope.com
Tue, 18 Jun 2002 10:47:38 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv6342/lib/python/Zope/Publisher/tests
Modified Files:
BaseTestIPublicationRequest.py TestPublication.py
Log Message:
Renamed request getResponse method to read-only response property.
=== Zope3/lib/python/Zope/Publisher/tests/BaseTestIPublicationRequest.py 1.2 => 1.3 ===
request = self._Test__new()
- response = request.getResponse()
+ response = request.response
rcresponse = sys.getrefcount(response)
resource = object()
=== Zope3/lib/python/Zope/Publisher/tests/TestPublication.py 1.2 => 1.3 ===
'''See interface IPublication'''
try:
- request.getResponse().setBody("%s: %s" % (exc_info[:2]))
+ request.response.setBody("%s: %s" % (exc_info[:2]))
finally:
exc_info = 0