[Zope3-checkins] CVS: Zope3/src/zope/app/index/text/tests - test_batchedrankedprocessor.py:1.7 test_index.py:1.12
Steve Alexander
steve@cat-box.net
Sat, 7 Jun 2003 02:37:58 -0400
Update of /cvs-repository/Zope3/src/zope/app/index/text/tests
In directory cvs.zope.org:/tmp/cvs-serv4294/src/zope/app/index/text/tests
Modified Files:
test_batchedrankedprocessor.py test_index.py
Log Message:
updated to use new-style interface declarations
=== Zope3/src/zope/app/index/text/tests/test_batchedrankedprocessor.py 1.6 => 1.7 ===
--- 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 Sat Jun 7 02:37:27 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.11 => 1.12 ===
--- Zope3/src/zope/app/index/text/tests/test_index.py:1.11 Tue Jun 3 17:43:00 2003
+++ Zope3/src/zope/app/index/text/tests/test_index.py Sat Jun 7 02:37:27 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):