Commit e6910ec7 authored by Hanno Schlichting's avatar Hanno Schlichting

Added test for clearIndex

parent 67f9aa36
......@@ -143,6 +143,12 @@ class TestZCatalog(unittest.TestCase):
verifyClass(IZCatalog, ZCatalog)
def testClearIndex(self):
idx = self._catalog._catalog.getIndex('title')
self.assertEquals(len(idx), self.upper)
self._catalog.clearIndex('title')
self.assertEquals(len(idx), 0)
def testGetMetadataForUID(self):
testNum = str(self.upper - 3) # as good as any..
data = self._catalog.getMetadataForUID(testNum)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment