[Zope-Checkins]
SVN: Zope/branches/philikon-aq-and-__parent__/lib/python/Acquisition/
Test aq_parent property as well (in addition to aq_parent function)
Philipp von Weitershausen
philikon at philikon.de
Mon Nov 20 19:29:59 EST 2006
Log message for revision 71228:
Test aq_parent property as well (in addition to aq_parent function)
Changed:
_U Zope/branches/philikon-aq-and-__parent__/lib/python/Acquisition/
U Zope/branches/philikon-aq-and-__parent__/lib/python/Acquisition/tests.py
-=-
Property changes on: Zope/branches/philikon-aq-and-__parent__/lib/python/Acquisition
___________________________________________________________________
Name: svk:merge
- bfa16f6a-5b7b-4684-983a-15b8a78f95a3:/local/Acquisition:3249
+ bfa16f6a-5b7b-4684-983a-15b8a78f95a3:/local/Acquisition:3250
Modified: Zope/branches/philikon-aq-and-__parent__/lib/python/Acquisition/tests.py
===================================================================
--- Zope/branches/philikon-aq-and-__parent__/lib/python/Acquisition/tests.py 2006-11-21 00:29:48 UTC (rev 71227)
+++ Zope/branches/philikon-aq-and-__parent__/lib/python/Acquisition/tests.py 2006-11-21 00:29:58 UTC (rev 71228)
@@ -1910,6 +1910,10 @@
>>> Acquisition.aq_parent(x) == y
True
+ >>> x.aq_parent == y
+ True
+ >>> x.aq_parent.aq_parent == z
+ True
>>> Acquisition.aq_parent(y) is z
True
@@ -1965,6 +1969,10 @@
>>> Acquisition.aq_parent(x) == y
True
+ >>> x.aq_parent == y
+ True
+ >>> x.aq_parent.aq_parent == z
+ True
>>> Acquisition.aq_parent(y) is z
True
More information about the Zope-Checkins
mailing list