[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/tests - test_conveniencefunctions.py:1.9

Albertas Agejevas alga@codeworks.lt
Wed, 26 Feb 2003 11:56:00 -0500


Update of /cvs-repository/Zope3/src/zope/app/traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv4565/tests

Modified Files:
	test_conveniencefunctions.py 
Log Message:
A unit test for a bug fix in getParent SteveA checked in yesterday.


=== Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py:1.8	Tue Feb 11 21:17:40 2003
+++ Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py	Wed Feb 26 11:56:00 2003
@@ -144,6 +144,14 @@
             self.folder
             )
 
+    def testGetParentOtherContext(self):
+        from zope.app.traversing import getParent
+        item = ContextWrapper(self.item, self.root, name='item')
+        self.assertEqual(
+            getParent(item),
+            self.folder
+            )
+
     def testGetParentFromRoot(self):
         from zope.app.traversing import getParent
         self.assertEqual(