[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/index/text/tests - test_index.py:1.6
Christian Zagrodnick
cz@gocept.com
Thu, 5 Dec 2002 04:53:37 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/index/text/tests
In directory cvs.zope.org:/tmp/cvs-serv32275
Modified Files:
test_index.py
Log Message:
added test for special None return value of ISearchableText
=== Zope3/lib/python/Zope/App/index/text/tests/test_index.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/index/text/tests/test_index.py:1.5 Wed Dec 4 15:03:48 2002
+++ Zope3/lib/python/Zope/App/index/text/tests/test_index.py Thu Dec 5 04:53:37 2002
@@ -93,6 +93,15 @@
self.assertAbsent(Bruce)
self.assertAbsent(Sheila)
+ def testNotIndexing(self):
+
+ docid = 1000
+ self.object.texts = None
+ event = ObjectRegisteredHubEvent(None, docid, object=self.object)
+ self.index.notify(event)
+ self.assertEqual(self.index.documentCount(), 0)
+
+
def testHubMachinery(self):
# Technically this is a functional test
hub = ObjectHub()