[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt Re-enable test for __of__

Philipp von Weitershausen philikon at philikon.de
Tue Aug 28 17:41:30 EDT 2007


Log message for revision 79331:
  Re-enable test for __of__
  

Changed:
  U   Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt

-=-
Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt
===================================================================
--- Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt	2007-08-28 21:37:05 UTC (rev 79330)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt	2007-08-28 21:41:29 UTC (rev 79331)
@@ -46,13 +46,10 @@
   >>> view.aq_inContextOf(object())
   0
 
-Let's try the __of__ protocol:
+Views also still support the __of__ protocol, at least pro forma:
 
-  #>>> view = view.__of__(self.app)
-  #>>> view.aq_parent == self.folder
-  #False
-  #>>> view.aq_parent == self.app
-  #True
+  >>> view == view.__of__(self.app)
+  True
 
 Mixing in Acquisition.{Ex|Im}plicit
 -----------------------------------



More information about the Zope-Checkins mailing list