[Zope3-checkins] CVS: Zope3/src/zope/app/index/tests - test_subscribers.py:1.7

Jim Fulton jim@zope.com
Tue, 3 Jun 2003 17:43:30 -0400


Update of /cvs-repository/Zope3/src/zope/app/index/tests
In directory cvs.zope.org:/tmp/cvs-serv29620/src/zope/app/index/tests

Modified Files:
	test_subscribers.py 
Log Message:
Refactored the setup machinery for placefull tests.

Most of the setup code is now available in stand-alone functions in 
zope.app.tests.setup. These include high-level functions for setting
up service managers and services.

Simplified existing tests to use the new setup facilities, removing
lots of icky code.



=== Zope3/src/zope/app/index/tests/test_subscribers.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/index/tests/test_subscribers.py:1.6	Sun Mar 23 17:35:39 2003
+++ Zope3/src/zope/app/index/tests/test_subscribers.py	Tue Jun  3 17:42:59 2003
@@ -25,8 +25,7 @@
 
 class TestRegistration(PlacefulSetup, TestCase):
     def setUp(self):
-        PlacefulSetup.setUp(self)
-        self.buildFolders()
+        PlacefulSetup.setUp(self, site=True)
         self.createStandardServices()
         r = Registration()
         default = traverse(self.rootFolder, '++etc++site/default')