Back to index

plone3  3.1.7
Classes | Functions | Variables
GenericSetup.tests.test_components Namespace Reference

Classes

class  IDummyInterface
class  DummyUtility
class  DummyTool
class  DummyTool2
class  ComponentRegistryXMLAdapterTests

Functions

def createComponentRegistry
def test_suite

Variables

 PersistentComponents = None
string _COMPONENTS_BODY

Function Documentation

Definition at line 44 of file test_components.py.

00044 
00045 def createComponentRegistry(context):
00046     enableSite(context, iface=IObjectManagerSite)
00047 
00048     components = PersistentComponents()
00049     components.__bases__ = (base,)
00050     components.__parent__ = aq_base(context)
00051     context.setSiteManager(components)

Here is the caller graph for this function:

Definition at line 187 of file test_components.py.

00187 
00188     def test_suite():
00189         # reimport to make sure tests are run from Products
00190         from Products.GenericSetup.tests.test_components \
00191                 import ComponentRegistryXMLAdapterTests
00192 
00193         return unittest.TestSuite((
00194             unittest.makeSuite(ComponentRegistryXMLAdapterTests),
00195             ))
else:

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <componentregistry>
00004  <adapters/>
00005  <utilities>
00006   <utility factory="Products.GenericSetup.tests.test_components.DummyUtility"
00007      interface="Products.GenericSetup.tests.test_components.IDummyInterface"/>
00008   <utility name="dummy tool name"
00009      interface="Products.GenericSetup.tests.test_components.IDummyInterface"
00010      object="dummy_tool"/>
00011   <utility name="dummy tool name2"
00012      interface="Products.GenericSetup.tests.test_components.IDummyInterface"
00013      object="dummy_tool2"/>
00014   <utility name="foo"
00015      factory="Products.GenericSetup.tests.test_components.DummyUtility"
00016      interface="Products.GenericSetup.tests.test_components.IDummyInterface"/>
00017  </utilities>
00018 </componentregistry>
00019 """

Definition at line 97 of file test_components.py.

Definition at line 42 of file test_components.py.