Back to index

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

List of all members.

Public Member Functions

def test_empty
def test_with_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'

Detailed Description

Definition at line 190 of file test_exportimport.py.


Member Function Documentation

Definition at line 194 of file test_exportimport.py.

00194 
00195     def test_empty(self):
00196         from Products.CMFActionIcons.exportimport \
00197             import exportActionIconsTool
00198 
00199         site = self._initSite(with_icon=False)
00200         context = DummyExportContext(site)
00201         exportActionIconsTool(context)
00202 
00203         self.assertEqual(len(context._wrote), 1)
00204         filename, text, content_type = context._wrote[0]
00205         self.assertEqual(filename, 'actionicons.xml')
00206         self._compareDOM(text, self._EMPTY_EXPORT)
00207         self.assertEqual(content_type, 'text/xml')

Here is the call graph for this function:

Definition at line 208 of file test_exportimport.py.

00208 
00209     def test_with_icon(self):
00210         from Products.CMFActionIcons.exportimport \
00211             import exportActionIconsTool
00212 
00213         site = self._initSite(with_icon=True)
00214         context = DummyExportContext(site)
00215         exportActionIconsTool(context)
00216 
00217         self.assertEqual(len(context._wrote), 1)
00218         filename, text, content_type = context._wrote[0]
00219         self.assertEqual(filename, 'actionicons.xml')
00220         self._compareDOM(text, self._WITH_ICON_EXPORT)
00221         self.assertEqual(content_type, 'text/xml')
00222 

Here is the call graph for this function:


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 192 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: