[Zope-Checkins] CVS: Zope/lib/python/SearchIndex/tests - testUnTextIndex.py:1.14
Chris McDonough
chrism@zope.com
Thu, 24 Jul 2003 15:30:29 -0400
Update of /cvs-repository/Zope/lib/python/SearchIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv13947
Modified Files:
testUnTextIndex.py
Log Message:
Fix failing tests due to lack of dummy class and missing functions catch_log_errors and ignore_log_errors.
=== Zope/lib/python/SearchIndex/tests/testUnTextIndex.py 1.13 => 1.14 ===
--- Zope/lib/python/SearchIndex/tests/testUnTextIndex.py:1.13 Wed Aug 14 17:46:24 2002
+++ Zope/lib/python/SearchIndex/tests/testUnTextIndex.py Thu Jul 24 15:30:23 2003
@@ -18,12 +18,16 @@
import SearchIndex.UnTextIndex
import SearchIndex.GlobbingLexicon
+class Dummy:
+
+ def __init__( self, text ):
+ self.text = text
+
class Tests(unittest.TestCase):
def setUp(self):
self.index=SearchIndex.UnTextIndex.UnTextIndex('text')
self.doc=Dummy(text='this is the time, when all good zopes')
- catch_log_errors()
def dbopen(self):
db = self.db = makeDB()
@@ -40,7 +44,6 @@
del self.db
def tearDown(self):
- ignore_log_errors()
get_transaction().abort()
if hasattr(self, 'jar'):
self.dbclose()