[Zope3-checkins] CVS: Zope3/src/zope/app/index/text/tests -
test_index.py:1.12.24.1
Jim Fulton
jim at zope.com
Fri Sep 12 15:15:59 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/index/text/tests
In directory cvs.zope.org:/tmp/cvs-serv13470/src/zope/app/index/text/tests
Modified Files:
Tag: parentgeddon-branch
test_index.py
Log Message:
Can't have the tests passing, can we?
=== Zope3/src/zope/app/index/text/tests/test_index.py 1.12 => 1.12.24.1 ===
--- Zope3/src/zope/app/index/text/tests/test_index.py:1.12 Sat Jun 7 02:37:27 2003
+++ Zope3/src/zope/app/index/text/tests/test_index.py Fri Sep 12 15:15:29 2003
@@ -49,9 +49,9 @@
def setUp(self):
PlacefulSetup.setUp(self, site=True)
self.index = TextIndex()
- self.rootFolder.setObject('myIndex', self.index)
+ self.rootFolder['myIndex'] = self.index
self.object = FakeSearchableObject()
- self.rootFolder.setObject('bruce', self.object)
+ self.rootFolder['bruce'] = self.object
def assertPresent(self, word, docid):
results, total = self.index.query(word)
@@ -96,7 +96,7 @@
hub.subscribe(index, IRegistrationHubEvent)
hub.subscribe(index, IObjectModifiedHubEvent)
location = "/bruce"
- self.rootFolder.setObject(location, self.object)
+ self.rootFolder[location] = self.object
hubid = hub.register(location)
self.assertPresent(Bruce, hubid)
More information about the Zope3-Checkins
mailing list