Back to index

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

List of all members.

Public Member Functions

def test_initPortletManagerNode_basic
def test_initPortletManagerNode_customType
def test_initPortletManagerNode_customClass
def afterSetUp

Public Attributes

 sm
 importer
 exporter

Detailed Description

Definition at line 203 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 205 of file test_exportimport.py.

00205 
00206     def test_initPortletManagerNode_basic(self):
00207         node = parseString(_XML_PORTLET_MANAGER_BASIC).documentElement
00208         self.importer._initPortletManagerNode(node)      
00209         
00210         manager = queryUtility(IPortletManager, name='plone.foo_column')
00211         self.failUnless(manager is not None)
00212         self.assertEqual(PortletManager, manager.__class__)
        

Definition at line 221 of file test_exportimport.py.

00221 
00222     def test_initPortletManagerNode_customClass(self):
00223         node = parseString(_XML_PORTLET_MANAGER_CUSTOM_CLASS).documentElement
00224         self.importer._initPortletManagerNode(node)
00225 
00226         manager = queryUtility(IPortletManager, name='plone.foo_column')
00227         self.failUnless(manager is not None)
00228         self.assertEqual(FooPortletManager, manager.__class__)
00229 

Definition at line 213 of file test_exportimport.py.

00213 
00214     def test_initPortletManagerNode_customType(self):
00215         node = parseString(_XML_PORTLET_MANAGER_CUSTOM_TYPE).documentElement
00216         self.importer._initPortletManagerNode(node)
00217 
00218         manager = queryUtility(IPortletManager, name='plone.foo_column')
00219         self.failUnless(manager is not None)
00220         self.failUnless(IColumn.providedBy(manager))
   

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: