[Zope3-checkins] CVS: Zope3/src/zope/app/index/field/tests - test_index.py:1.3.22.1

Jim Fulton jim at zope.com
Fri Sep 12 15:15:59 EDT 2003


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

Modified Files:
      Tag: parentgeddon-branch
	test_index.py 
Log Message:
Can't have the tests passing, can we?

=== Zope3/src/zope/app/index/field/tests/test_index.py 1.3 => 1.3.22.1 ===
--- Zope3/src/zope/app/index/field/tests/test_index.py:1.3	Mon Jun 23 12:44:38 2003
+++ Zope3/src/zope/app/index/field/tests/test_index.py	Fri Sep 12 15:15:28 2003
@@ -64,9 +64,9 @@
         provideAdapter(None, ISomeInterface, SomeAdapter)
         self.buildFolders()
         self.index = FieldIndex('zope3')
-        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, value, docid):
         result = self.index.search(value)
@@ -108,7 +108,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