[Zope3-checkins] CVS: Zope3/src/zope/app/index/text/tests - test_batchedrankedprocessor.py:1.6.10.1 test_index.py:1.10.10.1

Grégoire Weber zope@i-con.ch
Sun, 22 Jun 2003 10:24:11 -0400


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

Modified Files:
      Tag: cw-mail-branch
	test_batchedrankedprocessor.py test_index.py 
Log Message:
Synced up with HEAD

=== Zope3/src/zope/app/index/text/tests/test_batchedrankedprocessor.py 1.6 => 1.6.10.1 ===
--- Zope3/src/zope/app/index/text/tests/test_batchedrankedprocessor.py:1.6	Thu May  1 15:35:20 2003
+++ Zope3/src/zope/app/index/text/tests/test_batchedrankedprocessor.py	Sun Jun 22 10:23:10 2003
@@ -19,6 +19,7 @@
 from zope.app.tests.placelesssetup import PlacelessSetup
 
 from zope.interface.verify import verifyObject
+from zope.interface import implements
 
 from zope.component import getAdapter
 
@@ -31,7 +32,7 @@
 
 class StupidTextIndex:
 
-    __implements__ = IQuerying
+    implements(IQuerying)
 
     def __init__(self, returnvalue):
         self.returnvalue = returnvalue


=== Zope3/src/zope/app/index/text/tests/test_index.py 1.10 => 1.10.10.1 ===
--- 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	Sun Jun 22 10:23:10 2003
@@ -31,10 +31,11 @@
 
 from zope.app.interfaces.index.text import ISearchableText
 from zope.app.index.text.index import TextIndex
+from zope.interface import implements
 
 
 class FakeSearchableObject:
-    __implements__ = ISearchableText
+    implements(ISearchableText)
     def __init__(self):
         self.texts = [u"Bruce"]
     def getSearchableText(self):
@@ -46,8 +47,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()