Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
CMFCore.exportimport.tests.test_actions.ActionCategoryNodeAdapterTests Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_actions.ActionCategoryNodeAdapterTests:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_actions.ActionCategoryNodeAdapterTests:
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
 _XML

Detailed Description

Definition at line 279 of file test_actions.py.


Member Function Documentation

Definition at line 283 of file test_actions.py.

00283 
00284     def _getTargetClass(self):
00285         from Products.CMFCore.exportimport.actions \
00286                 import ActionCategoryNodeAdapter
00287 
00288         return ActionCategoryNodeAdapter

Definition at line 289 of file test_actions.py.

00289 
00290     def _populate(self, obj):
00291         from Products.CMFCore.ActionInformation import Action
00292 
00293         obj._setObject('foo_action', Action('foo_action'))

Here is the caller graph for this function:

Definition at line 294 of file test_actions.py.

00294 
00295     def _verifyImport(self, obj):
00296         self.assertEqual(type(obj.title), str)
00297         self.assertEqual(obj.title, '')

Here is the caller graph for this function:

Definition at line 298 of file test_actions.py.

00298 
00299     def setUp(self):
00300         from Products.CMFCore.ActionInformation import ActionCategory
00301 
00302         NodeAdapterTestCase.setUp(self)
00303         self._obj = ActionCategory('foo_category')
00304         self._XML = _ACTIONCATEGORY_XML
00305 


Member Data Documentation

Definition at line 302 of file test_actions.py.

Definition at line 303 of file test_actions.py.

Definition at line 281 of file test_actions.py.


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