Back to index

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


Member Function Documentation

Definition at line 245 of file test_actions.py.

00245 
00246     def _getTargetClass(self):
00247         from Products.CMFCore.exportimport.actions import ActionNodeAdapter
00248 
00249         return ActionNodeAdapter

Definition at line 250 of file test_actions.py.

00250 
00251     def _populate(self, obj):
00252         obj._setPropValue('title', 'Foo')
00253         obj._setPropValue('url_expr', 'string:${object_url}/foo')
00254         obj._setPropValue('available_expr', 'python:1')

Here is the caller graph for this function:

Definition at line 255 of file test_actions.py.

00255 
00256     def _verifyImport(self, obj):
00257         self.assertEqual(type(obj.title), str)
00258         self.assertEqual(obj.title, 'Foo')
00259         self.assertEqual(type(obj.description), str)
00260         self.assertEqual(obj.description, '')
00261         self.assertEqual(type(obj.url_expr), str)
00262         self.assertEqual(obj.url_expr, 'string:${object_url}/foo')
00263         self.assertEqual(type(obj.icon_expr), str)
00264         self.assertEqual(obj.icon_expr, '')
00265         self.assertEqual(type(obj.available_expr), str)
00266         self.assertEqual(obj.available_expr, 'python:1')
00267         self.assertEqual(type(obj.permissions), tuple)
00268         self.assertEqual(obj.permissions, ())
00269         self.assertEqual(type(obj.visible), bool)
00270         self.assertEqual(obj.visible, True)

Here is the caller graph for this function:

Definition at line 271 of file test_actions.py.

00271 
00272     def setUp(self):
00273         from Products.CMFCore.ActionInformation import Action
00274 
00275         NodeAdapterTestCase.setUp(self)
00276         self._obj = Action('foo_action')
00277         self._XML = _ACTION_XML
00278 


Member Data Documentation

Definition at line 275 of file test_actions.py.

Definition at line 276 of file test_actions.py.

Definition at line 243 of file test_actions.py.


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