[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ContentDirective/tests - testDirectives.py:1.8 testFactory.py:1.8

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


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

Modified Files:
	testDirectives.py testFactory.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/ContentDirective/tests/testDirectives.py 1.7 => 1.8 ===
--- Zope3/lib/python/Zope/App/ContentDirective/tests/testDirectives.py:1.7	Tue Aug 13 13:46:12 2002
+++ Zope3/lib/python/Zope/App/ContentDirective/tests/testDirectives.py	Fri Oct  4 14:37:14 2002
@@ -23,7 +23,7 @@
 
 from Zope.Configuration.xmlconfig import xmlconfig, XMLConfig
 from Zope.Configuration.xmlconfig import ZopeXMLConfigurationError
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
 from Zope.Security.SecurityManagement import newSecurityManager, system_user
 import Zope.App.ComponentArchitecture
 import Zope.App.Security


=== Zope3/lib/python/Zope/App/ContentDirective/tests/testFactory.py 1.7 => 1.8 ===
--- Zope3/lib/python/Zope/App/ContentDirective/tests/testFactory.py:1.7	Tue Aug 13 13:46:12 2002
+++ Zope3/lib/python/Zope/App/ContentDirective/tests/testFactory.py	Fri Oct  4 14:37:14 2002
@@ -20,7 +20,7 @@
 
 from Zope.Configuration.xmlconfig import xmlconfig, ZopeXMLConfigurationError
 from Zope.Configuration.xmlconfig import XMLConfig
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
 from Zope.Security.SecurityManagement import newSecurityManager, system_user
 
 import Zope.App.Security