[Checkins] SVN: Zope/trunk/src/Products/ZCatalog/tests/test_catalog.py Cleanup some comments
Hanno Schlichting
hannosch at hannosch.eu
Sat Jul 31 17:11:26 EDT 2010
Log message for revision 115288:
Cleanup some comments
Changed:
U Zope/trunk/src/Products/ZCatalog/tests/test_catalog.py
-=-
Modified: Zope/trunk/src/Products/ZCatalog/tests/test_catalog.py
===================================================================
--- Zope/trunk/src/Products/ZCatalog/tests/test_catalog.py 2010-07-31 21:07:43 UTC (rev 115287)
+++ Zope/trunk/src/Products/ZCatalog/tests/test_catalog.py 2010-07-31 21:11:26 UTC (rev 115288)
@@ -139,11 +139,7 @@
self.assert_('id' not in self._catalog.indexes,
'del index failed')
-# Removed unittests dealing with catalog instantiation and vocabularies
-# since catalog no longer creates/manages vocabularies automatically (Casey)
-# Test of the ZCatalog object, as opposed to Catalog
-
class zdummy(ExtensionClass.Base):
def __init__(self, num):
self.num = num
@@ -506,9 +502,6 @@
a = self._catalog(att2='att2')
self.assertEqual(len(a), upper,
'length should be %s, its %s' % (upper, len(a)))
-# XXX: don't know how to adjust this test for ZCTextIndex
-# for x in range(self.upper):
-# self.assertEqual(a[x].data_record_score_, 1)
def testKeywordIndexWithMinRange(self):
a = self._catalog(att3={'query': 'att', 'range': 'min'})
@@ -700,10 +693,13 @@
class PickySecurityManager:
+
def __init__(self, badnames=[]):
self.badnames = badnames
+
def validateValue(self, value):
return 1
+
def validate(self, accessed, container, name, value):
if name not in self.badnames:
return 1
More information about the checkins
mailing list