zope-checkins@zope.org
[Top] [All Lists]

[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five

Subject: [Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt Re-enable test for __of__
From: Philipp von Weitershausen
Date: Tue, 28 Aug 2007 17:41:30 -0400 EDT
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
 -----------------------------------

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@xxxxxxxx
http://mail.zope.org/mailman/listinfo/zope-checkins

<Prev in Thread] Current Thread [Next in Thread>
  • [Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt Re-enable test for __of__, Philipp von Weitershausen <=