Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ExtendedPathIndex.tests.testSetup.TestSetup Class Reference

List of all members.

Public Member Functions

def afterSetUp
def assertIndexCreated
def testAddIndex
def testAddIndexWithExtra

Public Attributes


Detailed Description

Definition at line 15 of file

Member Function Documentation

Definition at line 17 of file

00018     def afterSetUp(self):
00019         self.folder._setObject('catalog', ZCatalog('catalog'))
00020         self.catalog = self.folder.catalog

Definition at line 21 of file

00022     def assertIndexCreated(self, id):
00023         try:
00024             self.catalog.Indexes[id]
00025         except KeyError:
00026   'Failed to create index')

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 27 of file

00028     def testAddIndex(self):
00029         factory = self.catalog.manage_addProduct['ExtendedPathIndex']
00030         factory.manage_addExtendedPathIndex(id='path')
00031         self.assertIndexCreated('path')

Here is the call graph for this function:

Definition at line 32 of file

00033     def testAddIndexWithExtra(self):
00034         factory = self.catalog.manage_addProduct['ExtendedPathIndex']
00035         factory.manage_addExtendedPathIndex(id='path', extra={'indexed_attrs': 'foo'})
00036         self.assertIndexCreated('path')

Here is the call graph for this function:

Member Data Documentation

Definition at line 19 of file

The documentation for this class was generated from the following file: