[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_field.py:1.7
Jim Fulton
jim@zope.com
Fri, 23 May 2003 13:51:37 -0400
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv14579/src/zope/app/services/tests
Modified Files:
test_field.py
Log Message:
Changed test to avoid service-manager caching issues.
=== Zope3/src/zope/app/services/tests/test_field.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/services/tests/test_field.py:1.6 Thu Mar 13 12:10:37 2003
+++ Zope3/src/zope/app/services/tests/test_field.py Fri May 23 13:51:36 2003
@@ -126,6 +126,11 @@
some_class = self.__class__
resolver = ModuleService(dotted_name, some_class)
self.rootFolder.setServiceManager(resolver)
+
+ # We have to re-traverse to get new wrappers, since the old
+ # wrappers have stale caches.
+ folder2 = traverse(self.rootFolder, 'folder2')
+
self.assertEqual(locateComponent(dotted_name, folder2),
some_class
)