[Zope3-checkins] CVS: Zope3/src/zope/app/index/text/tests - test_index.py:1.11
Jim Fulton
jim@zope.com
Tue, 3 Jun 2003 17:43:30 -0400
Update of /cvs-repository/Zope3/src/zope/app/index/text/tests
In directory cvs.zope.org:/tmp/cvs-serv29620/src/zope/app/index/text/tests
Modified Files:
test_index.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/text/tests/test_index.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/index/text/tests/test_index.py:1.10 Thu May 1 15:35:20 2003
+++ Zope3/src/zope/app/index/text/tests/test_index.py Tue Jun 3 17:43:00 2003
@@ -46,8 +46,7 @@
class Test(PlacefulSetup, unittest.TestCase):
def setUp(self):
- PlacefulSetup.setUp(self)
- self.buildFolders()
+ PlacefulSetup.setUp(self, site=True)
self.index = TextIndex()
self.rootFolder.setObject('myIndex', self.index)
self.object = FakeSearchableObject()