Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
PluginRegistry.tests.test_exportimport.PluginRegistryExporterTests Class Reference
Inheritance diagram for PluginRegistry.tests.test_exportimport.PluginRegistryExporterTests:
Inheritance graph
[legend]
Collaboration diagram for PluginRegistry.tests.test_exportimport.PluginRegistryExporterTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_empty
def test_normal_no_plugins
def test_normal_with_plugins

Private Member Functions

def _getTargetClass

Detailed Description

Definition at line 143 of file test_exportimport.py.


Member Function Documentation

Definition at line 145 of file test_exportimport.py.

00145 
00146         def _getTargetClass(self):
00147             from Products.PluginRegistry.exportimport \
00148                 import PluginRegistryExporter
00149             return PluginRegistryExporter

Definition at line 150 of file test_exportimport.py.

00150 
00151         def test_empty(self):
00152             ztapi.provideAdapter(None, ITraversable, AttrItemTraverser)
00153 
00154             app, registry = self._initRegistry()
00155             exporter = self._makeOne(registry).__of__(registry)
00156             xml = exporter.generateXML()
00157 
00158             self._compareDOM(xml, _EMPTY_PLUGINREGISTRY_EXPORT)

Definition at line 159 of file test_exportimport.py.

00159 
00160         def test_normal_no_plugins(self):
00161             ztapi.provideAdapter(None, ITraversable, AttrItemTraverser)
00162 
00163             app, registry = self._initRegistry(
00164                                     plugin_type_info=_PLUGIN_TYPE_INFO)
00165             exporter = self._makeOne(registry).__of__(registry)
00166             xml = exporter.generateXML()
00167 
00168             self._compareDOM(xml, _NO_PLUGINS_PLUGINREGISTRY_EXPORT)

Definition at line 169 of file test_exportimport.py.

00169 
00170         def test_normal_with_plugins(self):
00171             ztapi.provideAdapter(None, ITraversable, AttrItemTraverser)
00172 
00173             app, registry = self._initRegistry(
00174                                     plugin_type_info=_PLUGIN_TYPE_INFO,
00175                                     plugins={IFoo: ('foo_plugin_1',
00176                                                     'foo_plugin_2')},
00177                                         )
00178             exporter = self._makeOne(registry).__of__(registry)
00179             xml = exporter.generateXML()
00180 
00181             self._compareDOM(xml, _NORMAL_PLUGINREGISTRY_EXPORT)
00182 
    class Test_exportPluginRegistry(_TestBase):

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