[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testAcquire.py:1.4 testObjectName.py:1.3 testPhysicalLocationAdapters.py:1.4 testPresentation.py:1.4

Jim Fulton jim@zope.com
Fri, 4 Oct 2002 14:37:55 -0400


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

Modified Files:
	testAcquire.py testObjectName.py 
	testPhysicalLocationAdapters.py testPresentation.py 
Log Message:
Many components now need to generate events. This means that an event
service needs to be in place when testing. For this reason, I've
refactored PlacelessSetup to include events. 

- I added a PlacelessSetup in Zope.Event.tests.

  This module also registers a subscriber that collects all events in
  a list and a function for getting all of the events that match an
  optional event type or filter. This is useful so that component
  tests can include tests to make sure that the proper events are
  being fired.

- I added a PlacelessSetup in Zope.App.tests that combines the
  PlacelessSetup from Zope.App.ComponentArchitecture and Zope.Event.

- I changed all the modules that imported
  Zope.ComponentArchitecture.tests.PlacelessSetup to import
  Zope.App.tests.PlacelessSetup.



=== Zope3/lib/python/Zope/App/Traversing/tests/testAcquire.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/Traversing/tests/testAcquire.py:1.3	Wed Jul 17 12:54:20 2002
+++ Zope3/lib/python/Zope/App/Traversing/tests/testAcquire.py	Fri Oct  4 14:37:24 2002
@@ -18,7 +18,7 @@
 """
 
 from unittest import TestCase, TestSuite, main, makeSuite
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
 from Zope.App.Traversing.ITraversable import ITraversable
 from Zope.App.Traversing.DefaultTraversable import DefaultTraversable
 from Zope.ComponentArchitecture.GlobalAdapterService import provideAdapter


=== Zope3/lib/python/Zope/App/Traversing/tests/testObjectName.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/Traversing/tests/testObjectName.py:1.2	Wed Jul 17 12:54:20 2002
+++ Zope3/lib/python/Zope/App/Traversing/tests/testObjectName.py	Fri Oct  4 14:37:24 2002
@@ -19,7 +19,7 @@
 from unittest import TestCase, TestSuite, main, makeSuite
 from Interface import Interface
 
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
 from Zope.ComponentArchitecture import getService, getAdapter
 
 from Zope.Proxy.ContextWrapper import ContextWrapper


=== Zope3/lib/python/Zope/App/Traversing/tests/testPhysicalLocationAdapters.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/Traversing/tests/testPhysicalLocationAdapters.py:1.3	Wed Jul 17 12:54:20 2002
+++ Zope3/lib/python/Zope/App/Traversing/tests/testPhysicalLocationAdapters.py	Fri Oct  4 14:37:24 2002
@@ -16,7 +16,7 @@
 """
 
 from unittest import TestCase, TestSuite, main, makeSuite
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
 from Zope.ComponentArchitecture.GlobalAdapterService import provideAdapter
 from Zope.ComponentArchitecture import getAdapter
 


=== Zope3/lib/python/Zope/App/Traversing/tests/testPresentation.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/Traversing/tests/testPresentation.py:1.3	Wed Jul 17 12:54:20 2002
+++ Zope3/lib/python/Zope/App/Traversing/tests/testPresentation.py	Fri Oct  4 14:37:24 2002
@@ -18,7 +18,7 @@
 """
 
 from unittest import TestCase, TestSuite, main, makeSuite
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
 from Zope.ComponentArchitecture.GlobalViewService import provideView
 from Zope.ComponentArchitecture.GlobalResourceService import provideResource
 from Zope.App.Traversing.PresentationNamespaces import view, resource