Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
CMFCore.exportimport.tests.test_properties.exportSitePropertiesTests Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_properties.exportSitePropertiesTests:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_properties.exportSitePropertiesTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_empty
def test_normal

Static Public Attributes

 layer = ExportImportZCMLLayer

Detailed Description

Definition at line 120 of file test_properties.py.


Member Function Documentation

Definition at line 124 of file test_properties.py.

00124 
00125     def test_empty(self):
00126         from Products.CMFCore.exportimport.properties \
00127                 import exportSiteProperties
00128 
00129         site = self._initSite(0, 0)
00130         context = DummyExportContext(site)
00131         exportSiteProperties(context)
00132 
00133         self.assertEqual(len(context._wrote), 1)
00134         filename, text, content_type = context._wrote[0]
00135         self.assertEqual(filename, 'properties.xml')
00136         self._compareDOM(text, _EMPTY_EXPORT)
00137         self.assertEqual(content_type, 'text/xml')

Here is the call graph for this function:

Definition at line 138 of file test_properties.py.

00138 
00139     def test_normal(self):
00140         from Products.CMFCore.exportimport.properties \
00141                 import exportSiteProperties
00142 
00143         site = self._initSite()
00144         context = DummyExportContext( site )
00145         exportSiteProperties(context)
00146 
00147         self.assertEqual(len(context._wrote), 1)
00148         filename, text, content_type = context._wrote[0]
00149         self.assertEqual(filename, 'properties.xml')
00150         self._compareDOM(text, _NORMAL_EXPORT)
00151         self.assertEqual(content_type, 'text/xml')
00152 

Here is the call graph for this function:


Member Data Documentation

Definition at line 122 of file test_properties.py.


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