Back to index

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

List of all members.

Public Member Functions

def test_unchanged
def test_changed

Static Public Attributes

 layer = ExportImportZCMLLayer

Detailed Description

Definition at line 65 of file test_mailhost.py.


Member Function Documentation

Definition at line 82 of file test_mailhost.py.

00082 
00083     def test_changed(self):
00084         from Products.CMFCore.exportimport.mailhost import exportMailHost
00085 
00086         site = self._initSite(use_changed=True)
00087         context = DummyExportContext(site)
00088         exportMailHost(context)
00089 
00090         self.assertEqual(len(context._wrote), 1)
00091         filename, text, content_type = context._wrote[0]
00092         self.assertEqual(filename, 'mailhost.xml')
00093         self._compareDOM(text, _CHANGED_EXPORT)
00094         self.assertEqual(content_type, 'text/xml')
00095 

Here is the call graph for this function:

Definition at line 69 of file test_mailhost.py.

00069 
00070     def test_unchanged(self):
00071         from Products.CMFCore.exportimport.mailhost import exportMailHost
00072 
00073         site = self._initSite(use_changed=False)
00074         context = DummyExportContext(site)
00075         exportMailHost(context)
00076 
00077         self.assertEqual(len(context._wrote), 1)
00078         filename, text, content_type = context._wrote[0]
00079         self.assertEqual(filename, 'mailhost.xml')
00080         self._compareDOM(text, _DEFAULT_EXPORT)
00081         self.assertEqual(content_type, 'text/xml')

Here is the call graph for this function:


Member Data Documentation

Definition at line 67 of file test_mailhost.py.


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