Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.portlets.tests.test_exportimport.TestExportPortletManagers Class Reference
Inheritance diagram for plone.app.portlets.tests.test_exportimport.TestExportPortletManagers:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.tests.test_exportimport.TestExportPortletManagers:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_extractPortletManagerNode_defaultTypeAndClass
def test_extractPortletManagerNode_customType
def test_extractPortletManagerNode_customClass
def afterSetUp

Public Attributes

 sm
 importer
 exporter

Detailed Description

Definition at line 230 of file test_exportimport.py.


Member Function Documentation

Definition at line 25 of file test_exportimport.py.

00025 
00026     def afterSetUp(self):
00027         setHooks()
00028         setSite(self.portal)
00029         self.sm = getSiteManager(self.portal)
00030         self.importer = self.exporter = PortletsXMLAdapter(self.sm,
00031           DummySetupEnviron())
   

Here is the call graph for this function:

Definition at line 248 of file test_exportimport.py.

00248 
00249     def test_extractPortletManagerNode_customClass(self):
00250         node = parseString(_XML_PORTLET_MANAGER_CUSTOM_CLASS).documentElement
00251         self.importer._initPortletManagerNode(node)
00252         results = self._searchPortletManagerRegistrations('plone.foo_column')
00253         r = results[0]
00254         node = self.exporter._extractPortletManagerNode(r)
00255         self.assertEqual('<portletmanager name="plone.foo_column"  class="plone.app.portlets.tests.utils.FooPortletManager"/>', self._node_as_string(node))

Here is the call graph for this function:

Definition at line 240 of file test_exportimport.py.

00240 
00241     def test_extractPortletManagerNode_customType(self):
00242         node = parseString(_XML_PORTLET_MANAGER_CUSTOM_TYPE).documentElement
00243         self.importer._initPortletManagerNode(node)
00244         results = self._searchPortletManagerRegistrations('plone.foo_column')
00245         r = results[0]
00246         node = self.exporter._extractPortletManagerNode(r)
00247         self.assertEqual('<portletmanager name="plone.foo_column"  type="plone.app.portlets.interfaces.IColumn"/>', self._node_as_string(node))

Here is the call graph for this function:

Definition at line 232 of file test_exportimport.py.

00232 
00233     def test_extractPortletManagerNode_defaultTypeAndClass(self):
00234         node = parseString(_XML_PORTLET_MANAGER_BASIC).documentElement
00235         self.importer._initPortletManagerNode(node)
00236         results = self._searchPortletManagerRegistrations('plone.foo_column')
00237         r = results[0]
00238         node = self.exporter._extractPortletManagerNode(r)
00239         self.assertEqual('<portletmanager name="plone.foo_column"/>', self._node_as_string(node))

Here is the call graph for this function:


Member Data Documentation

Definition at line 29 of file test_exportimport.py.

Definition at line 29 of file test_exportimport.py.

Definition at line 28 of file test_exportimport.py.


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