[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/tests - testBaseRequest.py:1.4
Jim Fulton
jim@zope.com
Tue, 18 Jun 2002 10:54:57 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv10107/lib/python/Zope/Publisher/tests
Modified Files:
testBaseRequest.py
Log Message:
Changed request getBody and getBodyFile methods to
body and bodyFile read-only properties.
=== Zope3/lib/python/Zope/Publisher/tests/testBaseRequest.py 1.3 => 1.4 ===
request = BaseRequest(StringIO('spam'), StringIO(), {})
- self.assertEqual(request.getBody(), 'spam')
+ self.assertEqual(request.body, 'spam')
request = BaseRequest(StringIO('spam'), StringIO(), {})
- self.assertEqual(request.getBodyFile().read(), 'spam')
+ self.assertEqual(request.bodyFile.read(), 'spam')
def test_IPublicationRequest_getPositionalArguments(self):
self.assertEqual(self._Test__new().getPositionalArguments(), ())