[Zope3-checkins]
SVN: Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/container/browser/tests/test_adding.py
Changed to use public response api
Jim Fulton
jim at zope.com
Fri Sep 2 17:06:42 EDT 2005
Log message for revision 38260:
Changed to use public response api
Changed:
U Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/container/browser/tests/test_adding.py
-=-
Modified: Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/container/browser/tests/test_adding.py
===================================================================
--- Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/container/browser/tests/test_adding.py 2005-09-02 21:06:39 UTC (rev 38259)
+++ Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/container/browser/tests/test_adding.py 2005-09-02 21:06:42 UTC (rev 38260)
@@ -195,10 +195,10 @@
ztapi.browserView(None, '', AbsoluteURL, providing=IAbsoluteURL)
self.assertRaises(UserError, adding.action, '', 'foo')
adding.action('Thing', 'foo')
- self.assertEqual(adding.request.response._headers['location'],
+ self.assertEqual(adding.request.response.getHeader('location'),
'/container/+/Thing=foo')
adding.action('Thing/screen1', 'foo')
- self.assertEqual(adding.request.response._headers['location'],
+ self.assertEqual(adding.request.response.getHeader['location'],
'/container/+/Thing/screen1=foo')
def test_publishTraverse_factory(self):
More information about the Zope3-Checkins
mailing list