Log message for revision 93450: Adjusted tests after policy change by malthe.
Changed: U Zope/trunk/doc/CHANGES.txt U Zope/trunk/lib/python/Products/Five/browser/tests/aqlegacy.py -=- Modified: Zope/trunk/doc/CHANGES.txt =================================================================== --- Zope/trunk/doc/CHANGES.txt 2008-11-30 21:40:34 UTC (rev 93449) +++ Zope/trunk/doc/CHANGES.txt 2008-11-30 21:48:48 UTC (rev 93450) @@ -225,8 +225,7 @@ - After the proper introduction of parent-pointers, it's now wrong to acquisition-wrap content providers. We will now use - the "classic" content provider expression from Zope - 3. [malthe] + the "classic" content provider expression from Zope 3. - Testing.ZopeTestCase: Remove quota argument from DemoStorage calls in preparation for ZODB 3.9. Modified: Zope/trunk/lib/python/Products/Five/browser/tests/aqlegacy.py =================================================================== --- Zope/trunk/lib/python/Products/Five/browser/tests/aqlegacy.py 2008-11-30 21:40:34 UTC (rev 93449) +++ Zope/trunk/lib/python/Products/Five/browser/tests/aqlegacy.py 2008-11-30 21:48:48 UTC (rev 93450) @@ -86,14 +86,11 @@ self.context = context self.request = request self.view = view - # Normally, a content provider should set __parent__ to view - # or context. This one doesn't do this on purpose to ensure - # it works without. + # A content provider must set __parent__ to view or context. + self.__parent__ = context def update(self): - # Make sure that the content provider is acquisition wrapped. - assert self.aq_parent == self.context - assert self.aq_base == self + pass def render(self): return 'Content provider inheriting from Explicit' _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins