[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testConvenienceFunctions.py:1.9

Steve Alexander steve@cat-box.net
Thu, 5 Dec 2002 08:46:01 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv32150/lib/python/Zope/App/Traversing/tests

Modified Files:
	testConvenienceFunctions.py 
Log Message:
Removed the requirement that objects are always context wrapped for 
discovering their physical paths. This doesn't apply for the root object,
for example, and might also not apply for objects that supply a different
PhysicallyLocatable adapter that doesn't depend on context wrappers.


=== Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py 1.8 => 1.9 ===
--- Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py:1.8	Tue Nov 26 14:00:21 2002
+++ Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py	Thu Dec  5 08:45:59 2002
@@ -151,14 +151,6 @@
             [self.folder, self.root]
             )
 
-    def testGetParentsFromUnwrapped(self):
-        from Zope.App.Traversing import getParents
-        self.assertRaises(
-            TypeError,
-            getParents,
-            self.unwrapped_item
-            )
-
     def testGetPhysicalPath(self):
         from Zope.App.Traversing import getPhysicalPath
         self.assertEqual(
@@ -187,27 +179,11 @@
             u'/',
             )
 
-    def testGetPhysicalPathFromUnwrapped(self):
-        from Zope.App.Traversing import getPhysicalPath
-        self.assertRaises(
-            TypeError,
-            getPhysicalPath,
-            self.unwrapped_item
-            )
-
     def testGetPhysicalRoot(self):
         from Zope.App.Traversing import getPhysicalRoot
         self.assertEqual(
             getPhysicalRoot(self.item),
             self.root
-            )
-
-    def testGetPhysicalRootFromUnwrapped(self):
-        from Zope.App.Traversing import getPhysicalRoot
-        self.assertRaises(
-            TypeError,
-            getPhysicalRoot,
-            self.unwrapped_item
             )
 
     _bad_locations = (