Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
CMFCore.exportimport.tests.test_actions.ActionsToolXMLAdapterTests Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_actions.ActionsToolXMLAdapterTests:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_actions.ActionsToolXMLAdapterTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp

Static Public Attributes

 layer = ExportImportZCMLLayer

Private Member Functions

def _getTargetClass
def _populate
def _verifyImport

Private Attributes

 _obj
 _BODY

Detailed Description

Definition at line 306 of file test_actions.py.


Member Function Documentation

Definition at line 310 of file test_actions.py.

00310 
00311     def _getTargetClass(self):
00312         from Products.CMFCore.exportimport.actions \
00313                 import ActionsToolXMLAdapter
00314 
00315         return ActionsToolXMLAdapter

Definition at line 316 of file test_actions.py.

00316 
00317     def _populate(self, obj):
00318         from Products.CMFCore.ActionInformation import Action
00319         from Products.CMFCore.ActionInformation import ActionCategory
00320 
00321         obj._setObject('foo_category', ActionCategory('foo_category'))
00322         obj.action_providers = ('portal_actions',)
00323         obj.foo_category._setObject('foo_action', Action('foo_action'))
00324         obj.foo_category.foo_action.i18n_domain = 'foo_domain'

Here is the caller graph for this function:

Definition at line 325 of file test_actions.py.

00325 
00326     def _verifyImport(self, obj):
00327         self.assertEqual(type(obj.action_providers), tuple)
00328         self.assertEqual(obj.action_providers, ('portal_actions',))
00329         self.assertEqual(type(obj.action_providers[0]), str)
00330         self.assertEqual(obj.action_providers[0], 'portal_actions')

Here is the caller graph for this function:

Definition at line 331 of file test_actions.py.

00331 
00332     def setUp(self):
00333         from Products.CMFCore.ActionsTool import ActionsTool
00334 
00335         BodyAdapterTestCase.setUp(self)
00336         site = DummySite('site')
00337         site._setObject('portal_actions', ActionsTool('portal_actions'))
00338         self._obj = site.portal_actions
00339         self._BODY = _ACTIONSTOOL_BODY
00340 


Member Data Documentation

Definition at line 338 of file test_actions.py.

Definition at line 337 of file test_actions.py.

Definition at line 308 of file test_actions.py.


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