[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/tests - BaseTestIPublisherRequest.py:1.3 testBaseRequest.py:1.3 testIPublication.py:1.3
Jim Fulton
jim@zope.com
Tue, 18 Jun 2002 10:37:56 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv4382/lib/python/Zope/Publisher/tests
Modified Files:
BaseTestIPublisherRequest.py testBaseRequest.py
testIPublication.py
Log Message:
Changed the request 'getPublication' method to a read-only
'publication' property.
=== Zope3/lib/python/Zope/Publisher/tests/BaseTestIPublisherRequest.py 1.2 => 1.3 ===
publication = TestPublication()
request.setPublication(publication)
- self.assertEqual(id(request.getPublication()), id(publication))
+ self.assertEqual(id(request.publication), id(publication))
=== Zope3/lib/python/Zope/Publisher/tests/testBaseRequest.py 1.2 => 1.3 ===
request = self._Test__new()
request.setPublication(TestPublication())
- app = request.getPublication().getApplication(request)
+ app = request.publication.getApplication(request)
request.setTraversalStack([])
self.assertEqual(request.traverse(app).name, '')
=== Zope3/lib/python/Zope/Publisher/tests/testIPublication.py 1.2 => 1.3 ===
def setUp(self):
self._request = request = self._Test__request()
- self._publication = request.getPublication()
+ self._publication = request.publication
def testgetApplication(self):
self._publication.getApplication(self._request)