Back to index

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

List of all members.

Public Member Functions

def test_normal

Static Public Attributes

 layer = ExportImportZCMLLayer

Detailed Description

Definition at line 96 of file test_mailhost.py.


Member Function Documentation

Definition at line 100 of file test_mailhost.py.

00100 
00101     def test_normal(self):
00102         from Products.CMFCore.exportimport.mailhost import importMailHost
00103 
00104         site = self._initSite()
00105         mh = site.MailHost
00106 
00107         context = DummyImportContext(site)
00108         context._files['mailhost.xml'] = _CHANGED_EXPORT
00109         importMailHost(context)
00110 
00111         self.assertEqual( mh.smtp_pwd, 'value1' )
00112         self.assertEqual( mh.smtp_host, 'value2' )
00113         self.assertEqual( mh.smtp_uid, 'value3' )
00114         self.assertEqual( mh.smtp_port, 1 )
00115 

Here is the call graph for this function:


Member Data Documentation

Definition at line 98 of file test_mailhost.py.


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