[Zope-Checkins] 
	SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy.py
	Make sure that a viewlet inheriting from Explicit also has the right
    Philipp von Weitershausen 
    philikon at philikon.de
       
    Sat Sep  1 16:25:48 EDT 2007
    
    
  
Log message for revision 79430:
  Make sure that a viewlet inheriting from Explicit also has the right
  legacy attributes and they point to the right things.
  
Changed:
  U   Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy.py
-=-
Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy.py	2007-09-01 20:16:02 UTC (rev 79429)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy.py	2007-09-01 20:25:48 UTC (rev 79430)
@@ -84,7 +84,10 @@
         self.request = request
 
     def update(self):
-        pass
+        # Make sure that the viewlet has the legacy attributes and
+        # they point to the right objects.
+        assert self.aq_parent == self.context
+        assert self.aq_base == self
 
     def render(self):
         return 'Viewlet inheriting from Explicit'
    
    
More information about the Zope-Checkins
mailing list