Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
GenericSetup.ZCTextIndex.tests.test_exportimport.ZCTextIndexNodeAdapterTests Class Reference
Inheritance diagram for GenericSetup.ZCTextIndex.tests.test_exportimport.ZCTextIndexNodeAdapterTests:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.ZCTextIndex.tests.test_exportimport.ZCTextIndexNodeAdapterTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp

Static Public Attributes

 layer = ExportImportZCMLLayer

Private Member Functions

def _getTargetClass
def _populate

Private Attributes

 _obj
 _XML

Detailed Description

Definition at line 78 of file test_exportimport.py.


Member Function Documentation

Definition at line 82 of file test_exportimport.py.

00082 
00083     def _getTargetClass(self):
00084         from Products.GenericSetup.ZCTextIndex.exportimport \
00085                 import ZCTextIndexNodeAdapter
00086 
00087         return ZCTextIndexNodeAdapter

Definition at line 88 of file test_exportimport.py.

00088 
00089     def _populate(self, obj):
00090         obj._indexed_attrs = ['foo_zctext', 'baz_zctext']

Definition at line 91 of file test_exportimport.py.

00091 
00092     def setUp(self):
00093         from Products.ZCTextIndex.ZCTextIndex import PLexicon
00094         from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex
00095 
00096         NodeAdapterTestCase.setUp(self)
00097         catalog = DummyCatalog()
00098         catalog.foo_plexicon = PLexicon('foo_plexicon')
00099         extra = _extra()
00100         extra.lexicon_id = 'foo_plexicon'
00101         extra.index_type='Okapi BM25 Rank'
00102         self._obj = ZCTextIndex('foo_zctext', extra=extra,
00103                                 caller=catalog).__of__(catalog)
00104         self._XML = _ZCTEXT_XML
00105 


Member Data Documentation

Definition at line 101 of file test_exportimport.py.

Definition at line 103 of file test_exportimport.py.

Definition at line 80 of file test_exportimport.py.


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