[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Caching/tests - testAnnotationCacheable.py:1.3 testCaching.py:1.2

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


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

Modified Files:
	testAnnotationCacheable.py testCaching.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/Caching/tests/testAnnotationCacheable.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/Caching/tests/testAnnotationCacheable.py:1.2	Thu Oct  3 06:37:50 2002
+++ Zope3/lib/python/Zope/App/Caching/tests/testAnnotationCacheable.py	Fri Oct  4 14:37:12 2002
@@ -17,7 +17,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 import getService
 from Zope.App.OFS.Annotation.IAnnotations import IAnnotations
 from Zope.App.OFS.Annotation.IAttributeAnnotatable import IAttributeAnnotatable


=== Zope3/lib/python/Zope/App/Caching/tests/testCaching.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/Caching/tests/testCaching.py:1.1	Thu Oct  3 06:37:50 2002
+++ Zope3/lib/python/Zope/App/Caching/tests/testCaching.py	Fri Oct  4 14:37:12 2002
@@ -27,7 +27,7 @@
 from Zope.App.OFS.Annotation.AttributeAnnotations import AttributeAnnotations
 from Zope.ComponentArchitecture import getAdapter
 from Zope.ComponentArchitecture import getService
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
 from Zope.ComponentArchitecture.GlobalServiceManager import \
      serviceManager as sm