Back to index

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

List of all members.

Public Member Functions

def test_unchanged
def test_normal

Static Public Attributes

 layer = ExportImportZCMLLayer

Detailed Description

Definition at line 104 of file test_catalog.py.


Member Function Documentation

Definition at line 121 of file test_catalog.py.

00121 
00122     def test_normal(self):
00123         from Products.CMFCore.exportimport.catalog import exportCatalogTool
00124 
00125         site = self._initSite(2)
00126         context = DummyExportContext(site)
00127         exportCatalogTool(context)
00128 
00129         self.assertEqual(len(context._wrote), 1)
00130         filename, text, content_type = context._wrote[0]
00131         self.assertEqual(filename, 'catalog.xml')
00132         self._compareDOM(text, _NORMAL_EXPORT)
00133         self.assertEqual(content_type, 'text/xml')
00134 

Here is the call graph for this function:

Definition at line 108 of file test_catalog.py.

00108 
00109     def test_unchanged(self):
00110         from Products.CMFCore.exportimport.catalog import exportCatalogTool
00111 
00112         site = self._initSite(0)
00113         context = DummyExportContext(site)
00114         exportCatalogTool(context)
00115 
00116         self.assertEqual(len(context._wrote), 1)
00117         filename, text, content_type = context._wrote[0]
00118         self.assertEqual(filename, 'catalog.xml')
00119         self._compareDOM(text, _EMPTY_EXPORT)
00120         self.assertEqual(content_type, 'text/xml')

Here is the call graph for this function:


Member Data Documentation

Definition at line 106 of file test_catalog.py.


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