Back to index

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

List of all members.

Public Member Functions

def test_empty
def test_with_info

Static Public Attributes

string V_OBJECT_ID = 'v_object_id'
string V_CONTEXT_TYPE = 'v_context_type'
string V_BUTTON = 'v_button'
list V_VALIDATORS = ['validator1', 'validator2']
string A_OBJECT_ID = 'a_object_id'
string A_STATUS = 'a_status'
string A_CONTEXT_TYPE = 'a_context_type'
string A_BUTTON = 'a_button'
string A_ACTION_TYPE = 'redirect_to'
string A_ACTION_ARG = 'string:action_arg'

Detailed Description

Definition at line 172 of file test_exportimport.py.


Member Function Documentation

Definition at line 174 of file test_exportimport.py.

00174 
00175     def test_empty(self):
00176         from Products.CMFFormController.exportimport \
00177              import exportCMFFormController
00178 
00179         site = self._initSite(with_info=False)
00180         context = DummyExportContext(site)
00181         exportCMFFormController(context)
00182 
00183         self.assertEqual(len(context._wrote), 1)
00184         filename, text, content_type = context._wrote[0]
00185         self.assertEqual(filename, 'cmfformcontroller.xml')
00186         self._compareDOM(text, self._EMPTY_EXPORT)
00187         self.assertEqual(content_type, 'text/xml')

Here is the call graph for this function:

Definition at line 188 of file test_exportimport.py.

00188 
00189     def test_with_info(self):
00190         from Products.CMFFormController.exportimport \
00191              import exportCMFFormController
00192 
00193         site = self._initSite(with_info=True)
00194         context = DummyExportContext(site)
00195         exportCMFFormController(context)
00196 
00197         self.assertEqual(len(context._wrote), 1)
00198         filename, text, content_type = context._wrote[0]
00199         self.assertEqual(filename, 'cmfformcontroller.xml')
00200         self._compareDOM(text, self._WITH_INFO_EXPORT)
00201         self.assertEqual(content_type, 'text/xml')
00202 

Here is the call graph for this function:


Member Data Documentation

Definition at line 35 of file test_exportimport.py.

Definition at line 34 of file test_exportimport.py.

Definition at line 33 of file test_exportimport.py.

Definition at line 32 of file test_exportimport.py.

Definition at line 30 of file test_exportimport.py.

Definition at line 31 of file test_exportimport.py.

Definition at line 27 of file test_exportimport.py.

Definition at line 26 of file test_exportimport.py.

Definition at line 25 of file test_exportimport.py.

list CMFFormController.tests.test_exportimport._CMFFormControllerSetup.V_VALIDATORS = ['validator1', 'validator2'] [static, inherited]

Definition at line 28 of file test_exportimport.py.


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