Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
CMFPlone.tests.testCatalogTool.TestObjectProvidedIndexExtender Class Reference

List of all members.

Public Member Functions

def testNoInterfaces
def testSimpleInterface

Private Member Functions

def _index

Detailed Description

Definition at line 958 of file

Member Function Documentation

Definition at line 959 of file

00960     def _index(self, object):
00961         from Products.CMFPlone.CatalogTool import object_provides
00962         return object_provides(object, None)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 963 of file

00964     def testNoInterfaces(self):
00965         class Dummy(object):
00966             pass
00967         self.assertEqual(self._index(Dummy()), ['zope.interface.Interface'])

Definition at line 968 of file

00969     def testSimpleInterface(self):
00970         class IDummy(zope.interface.Interface):
00971             pass
00972         class Dummy(object):
00973             zope.interface.implements(IDummy)
00974         self.assertEqual(self._index(Dummy()), [
00975             'Products.CMFPlone.tests.testCatalogTool.IDummy',
00976             'zope.interface.Interface'])

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