[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser/tests - testFileResource.py:1.3
Jim Fulton
jim@zope.com
Tue, 18 Jun 2002 10:47:35 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv6342/lib/python/Zope/App/Publisher/Browser/tests
Modified Files:
testFileResource.py
Log Message:
Renamed request getResponse method to read-only response property.
=== Zope3/lib/python/Zope/App/Publisher/Browser/tests/testFileResource.py 1.2 => 1.3 ===
self.assertEqual(resource.GET(), open(path, 'rb').read())
- response = resource.request.getResponse()
+ response = resource.request.response
self.assertEqual(response.getHeader('Content-Type'), 'text/plain')
def testFileHEAD(self):
@@ -74,7 +74,7 @@
self.assertEqual(resource.HEAD(), '')
- response = resource.request.getResponse()
+ response = resource.request.response
self.assertEqual(response.getHeader('Content-Type'), 'text/plain')
def testImageGET(self):
@@ -85,7 +85,7 @@
self.assertEqual(resource.GET(), open(path, 'rb').read())
- response = resource.request.getResponse()
+ response = resource.request.response
self.assertEqual(response.getHeader('Content-Type'), 'image/gif')
def testImageHEAD(self):
@@ -95,7 +95,7 @@
self.assertEqual(resource.HEAD(), '')
- response = resource.request.getResponse()
+ response = resource.request.response
self.assertEqual(response.getHeader('Content-Type'), 'image/gif')