[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TopicIndex/tests - testTopicIndex.py:1.3
Andreas Jung
andreas@digicool.com
Tue, 11 Jun 2002 17:05:28 -0400
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TopicIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv9868/TopicIndex/tests
Modified Files:
testTopicIndex.py
Log Message:
- removed empty or meaningless comments
- minor source code cleanup
=== Zope/lib/python/Products/PluginIndexes/TopicIndex/tests/testTopicIndex.py 1.2 => 1.3 ===
def testOr(self):
- """ test 1 """
self._searchOr('doc1',[1,2])
self._searchOr(['doc1'],[1,2])
@@ -77,7 +76,6 @@
def testAnd(self):
- """ test 1 """
self._searchAnd('doc1',[1,2])
self._searchAnd(['doc1'],[1,2])
@@ -107,20 +105,17 @@
self.cat.catalog_object(Obj('5','doc3'))
self.cat.catalog_object(Obj('6','doc3'))
-
def testOr(self):
- """ testing or (catalog)"""
+
self._searchOr('doc1',[1,2])
self._searchOr('doc2',[3,4])
self._searchOr(['doc1','doc2'],[1,2,3,4])
-
def testAnd(self):
- """ testing And (catalog)"""
+
self._searchAnd('doc1',[1,2])
self._searchAnd('doc2',[3,4])
self._searchAnd(['doc1','doc2'],[])
-
def _search(self,query,operator,expected):