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

Albertas Agejevas alga@codeworks.lt
Wed, 19 Mar 2003 12:56:08 -0500


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

Modified Files:
	test_conveniencefunctions.py test_physicallocationadapters.py 
Log Message:
Renamed getPhysicalRoot() to getRoot().


=== Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py:1.9	Wed Feb 26 11:56:00 2003
+++ Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py	Wed Mar 19 12:55:37 2003
@@ -235,9 +235,9 @@
             )
 
     def testGetPhysicalRoot(self):
-        from zope.app.traversing import getPhysicalRoot
+        from zope.app.traversing import getRoot
         self.assertEqual(
-            getPhysicalRoot(self.item),
+            getRoot(self.item),
             self.root
             )
 


=== Zope3/src/zope/app/traversing/tests/test_physicallocationadapters.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/traversing/tests/test_physicallocationadapters.py:1.4	Sat Dec 28 12:49:34 2002
+++ Zope3/src/zope/app/traversing/tests/test_physicallocationadapters.py	Wed Mar 19 12:55:37 2003
@@ -44,11 +44,11 @@
         adapter = getAdapter(f3, IPhysicallyLocatable)
 
         self.assertEqual(adapter.getPhysicalPath(), ('', 'f1', 'f2', 'f3'))
-        self.assertEqual(adapter.getPhysicalRoot(), root)
+        self.assertEqual(adapter.getRoot(), root)
 
         adapter = getAdapter(C(), IPhysicallyLocatable)
         self.assertRaises(TypeError, adapter.getPhysicalPath)
-        self.assertRaises(TypeError, adapter.getPhysicalRoot)
+        self.assertRaises(TypeError, adapter.getRoot)
 
     def testWSideEffectDataInFront(self):
         provideAdapter(None, IPhysicallyLocatable, WrapperPhysicallyLocatable)
@@ -65,11 +65,11 @@
         adapter = getAdapter(f3, IPhysicallyLocatable)
 
         self.assertEqual(adapter.getPhysicalPath(), ('', 'f1', 'f2', 'f3'))
-        self.assertEqual(adapter.getPhysicalRoot(), root)
+        self.assertEqual(adapter.getRoot(), root)
 
         adapter = getAdapter(C(), IPhysicallyLocatable)
         self.assertRaises(TypeError, adapter.getPhysicalPath)
-        self.assertRaises(TypeError, adapter.getPhysicalRoot)
+        self.assertRaises(TypeError, adapter.getRoot)
 
     def testWSideEffectDataInMiddle(self):
         provideAdapter(None, IPhysicallyLocatable, WrapperPhysicallyLocatable)
@@ -87,11 +87,11 @@
         adapter = getAdapter(f3, IPhysicallyLocatable)
 
         self.assertEqual(adapter.getPhysicalPath(), ('', 'f1', 'f2', 'f3'))
-        self.assertEqual(adapter.getPhysicalRoot(), root)
+        self.assertEqual(adapter.getRoot(), root)
 
         adapter = getAdapter(C(), IPhysicallyLocatable)
         self.assertRaises(TypeError, adapter.getPhysicalPath)
-        self.assertRaises(TypeError, adapter.getPhysicalRoot)
+        self.assertRaises(TypeError, adapter.getRoot)
 
 def test_suite():
     return makeSuite(Test)