Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions
CMFActionIcons.tests.test_exportimport.ActionIconsToolImportConfiguratorTests Class Reference
Inheritance diagram for CMFActionIcons.tests.test_exportimport.ActionIconsToolImportConfiguratorTests:
Inheritance graph
[legend]
Collaboration diagram for CMFActionIcons.tests.test_exportimport.ActionIconsToolImportConfiguratorTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_parseXML_empty
def test_parseXML_empty_i18n
def test_parseXML_with_icon
def test_parseXML_with_i18n_icon

Static Public Attributes

 layer = ExportImportZCMLLayer
string CATEGORY = 'testing'
string ACTION_ID = "test_action"
string TITLE = "Action Title"
int PRIORITY = 60
string ICON_EXPR = 'test_icon'

Private Member Functions

def _getTargetClass

Detailed Description

Definition at line 137 of file test_exportimport.py.


Member Function Documentation

Definition at line 141 of file test_exportimport.py.

00141 
00142     def _getTargetClass(self):
00143         from Products.CMFActionIcons.exportimport \
00144                 import ActionIconsToolImportConfigurator
00145 
00146         return ActionIconsToolImportConfigurator

Definition at line 147 of file test_exportimport.py.

00147 
00148     def test_parseXML_empty(self):
00149         site = self._initSite(with_icon=False)
00150         configurator = self._makeOne(site)
00151         ait_info = configurator.parseXML(self._EMPTY_EXPORT)
00152 
00153         self.assertEqual(len(ait_info['action_icons']), 0)

Definition at line 154 of file test_exportimport.py.

00154 
00155     def test_parseXML_empty_i18n(self):
00156         site = self._initSite(with_icon=False)
00157         configurator = self._makeOne(site)
00158         ait_info = configurator.parseXML(self._EMPTY_I18N_EXPORT)
00159 
00160         self.assertEqual(len(ait_info['action_icons']), 0)

Definition at line 175 of file test_exportimport.py.

00175 
00176     def test_parseXML_with_i18n_icon(self):
00177         site = self._initSite(with_icon=False)
00178         configurator = self._makeOne(site)
00179         ait_info = configurator.parseXML(self._WITH_I18N_ICON_EXPORT)
00180 
00181         self.assertEqual(len(ait_info['action_icons']), 1)
00182 
00183         info = ait_info['action_icons'][0]
00184         self.assertEqual(info['category'], self.CATEGORY)
00185         self.assertEqual(info['action_id'], self.ACTION_ID)
00186         self.assertEqual(info['title'], self.TITLE)
00187         self.assertEqual(info['priority'], self.PRIORITY)
00188         self.assertEqual(info['icon_expr'], self.ICON_EXPR)
00189 

Definition at line 161 of file test_exportimport.py.

00161 
00162     def test_parseXML_with_icon(self):
00163         site = self._initSite(with_icon=False)
00164         configurator = self._makeOne(site)
00165         ait_info = configurator.parseXML(self._WITH_ICON_EXPORT)
00166 
00167         self.assertEqual(len(ait_info['action_icons']), 1)
00168 
00169         info = ait_info['action_icons'][0]
00170         self.assertEqual(info['category'], self.CATEGORY)
00171         self.assertEqual(info['action_id'], self.ACTION_ID)
00172         self.assertEqual(info['title'], self.TITLE)
00173         self.assertEqual(info['priority'], self.PRIORITY)
00174         self.assertEqual(info['icon_expr'], self.ICON_EXPR)


Member Data Documentation

Definition at line 34 of file test_exportimport.py.

Definition at line 33 of file test_exportimport.py.

Definition at line 37 of file test_exportimport.py.

Definition at line 139 of file test_exportimport.py.

Definition at line 36 of file test_exportimport.py.

string CMFActionIcons.tests.test_exportimport._ActionIconsToolSetup.TITLE = "Action Title" [static, inherited]

Definition at line 35 of file test_exportimport.py.


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