[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/tests - test_conveniencefunctions.py:1.1.2.2
Jim Fulton
jim@zope.com
Mon, 23 Dec 2002 18:22:52 -0500
Update of /cvs-repository/Zope3/src/zope/app/traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv30919/zope/app/traversing/tests
Modified Files:
Tag: NameGeddon-branch
test_conveniencefunctions.py
Log Message:
Changes needed to get placefulsetup working again (I think) and to get zope.app.traversing almost passing
=== Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py:1.1.2.1 Mon Dec 23 14:32:34 2002
+++ Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py Mon Dec 23 18:22:21 2002
@@ -77,14 +77,14 @@
def testTraverse(self):
- from Zope.App.Traversing import traverse
+ from zope.app.traversing import traverse
self.assertEqual(
traverse(self.item, '/folder/item'),
self.tr.traverse('/folder/item')
)
def testTraverseFromUnwrapped(self):
- from Zope.App.Traversing import traverse
+ from zope.app.traversing import traverse
self.assertRaises(
TypeError,
traverse,
@@ -92,7 +92,7 @@
)
def testTraverseName(self):
- from Zope.App.Traversing import traverseName
+ from zope.app.traversing import traverseName
self.assertEqual(
traverseName(self.folder, 'item'),
self.tr.traverse('/folder/item')
@@ -103,7 +103,7 @@
)
def testTraverseNameBadValue(self):
- from Zope.App.Traversing import traverseName
+ from zope.app.traversing import traverseName
self.assertRaises(
NotFoundError,
traverseName,
@@ -121,14 +121,14 @@
)
def testObjectName(self):
- from Zope.App.Traversing import objectName
+ from zope.app.traversing import objectName
self.assertEqual(
objectName(self.item),
'item'
)
def testObjectNameFromUnwrapped(self):
- from Zope.App.Traversing import objectName
+ from zope.app.traversing import objectName
self.assertRaises(
TypeError,
objectName,
@@ -136,14 +136,14 @@
)
def testGetParent(self):
- from Zope.App.Traversing import getParent
+ from zope.app.traversing import getParent
self.assertEqual(
getParent(self.item),
self.folder
)
def testGetParentFromUnwrapped(self):
- from Zope.App.Traversing import getParent
+ from zope.app.traversing import getParent
self.assertRaises(
TypeError,
getParent,
@@ -151,7 +151,7 @@
)
def testGetParents(self):
- from Zope.App.Traversing import getParents
+ from zope.app.traversing import getParents
self.assertEqual(
getParents(self.item),
[self.folder, self.root]
@@ -159,7 +159,7 @@
def testGetParentsFromUnwrapped(self):
- from Zope.App.Traversing import getParents
+ from zope.app.traversing import getParents
self.assertRaises(
TypeError,
getParents,
@@ -167,7 +167,7 @@
)
def testGetParentFromUnwrapped(self):
- from Zope.App.Traversing import getParent
+ from zope.app.traversing import getParent
self.assertRaises(
TypeError,
getParent,
@@ -175,35 +175,35 @@
)
def testGetPhysicalPath(self):
- from Zope.App.Traversing import getPhysicalPath
+ from zope.app.traversing import getPhysicalPath
self.assertEqual(
getPhysicalPath(self.item),
('', 'folder', 'item')
)
def testGetPhysicalPathString(self):
- from Zope.App.Traversing import getPhysicalPathString
+ from zope.app.traversing import getPhysicalPathString
self.assertEqual(
getPhysicalPathString(self.item),
u'/folder/item'
)
def testGetPhysicalPathOfRoot(self):
- from Zope.App.Traversing import getPhysicalPath
+ from zope.app.traversing import getPhysicalPath
self.assertEqual(
getPhysicalPath(self.root),
('',)
)
def testGetPhysicalPathStringOfRoot(self):
- from Zope.App.Traversing import getPhysicalPathString
+ from zope.app.traversing import getPhysicalPathString
self.assertEqual(
getPhysicalPathString(self.root),
u'/',
)
def testGetPhysicalRoot(self):
- from Zope.App.Traversing import getPhysicalRoot
+ from zope.app.traversing import getPhysicalRoot
self.assertEqual(
getPhysicalRoot(self.item),
self.root
@@ -256,7 +256,7 @@
)
def testLocationAsTuple(self):
- from Zope.App.Traversing import locationAsTuple as lat
+ from zope.app.traversing import locationAsTuple as lat
for error_type, value in self._bad_locations:
self.assertRaises(error_type, lat, value)
@@ -267,7 +267,7 @@
self.applyAssertEqual(lat, argument, correct_answer)
def testLocationAsUnicode(self):
- from Zope.App.Traversing import locationAsUnicode as lau
+ from zope.app.traversing import locationAsUnicode as lau
for error_type, value in self._bad_locations:
self.assertRaises(error_type, lau, value)