Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
GenericSetup.MailHost.tests.test_exportimport.MailHostXMLAdapterTests Class Reference
Inheritance diagram for GenericSetup.MailHost.tests.test_exportimport.MailHostXMLAdapterTests:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.MailHost.tests.test_exportimport.MailHostXMLAdapterTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp

Static Public Attributes

 layer = ExportImportZCMLLayer

Private Member Functions

def _getTargetClass
def _verifyImport

Private Attributes

 _obj
 _BODY

Detailed Description

Definition at line 31 of file test_exportimport.py.


Member Function Documentation

Definition at line 35 of file test_exportimport.py.

00035 
00036     def _getTargetClass(self):
00037         from Products.GenericSetup.MailHost.exportimport \
00038                 import MailHostXMLAdapter
00039 
00040         return MailHostXMLAdapter

Definition at line 41 of file test_exportimport.py.

00041 
00042     def _verifyImport(self, obj):
00043         self.assertEqual(type(obj.smtp_host), str)
00044         self.assertEqual(obj.smtp_host, 'localhost')
00045         self.assertEqual(type(obj.smtp_port), int)
00046         self.assertEqual(obj.smtp_port, 25)
00047         self.assertEqual(type(obj.smtp_pwd), str)
00048         self.assertEqual(obj.smtp_pwd, '')
00049         self.assertEqual(type(obj.smtp_uid), str)
00050         self.assertEqual(obj.smtp_uid, '')

Here is the caller graph for this function:

Definition at line 51 of file test_exportimport.py.

00051 
00052     def setUp(self):
00053         from Products.MailHost.MailHost import MailHost
00054 
00055         BodyAdapterTestCase.setUp(self)
00056         self._obj = MailHost('foo_mailhost')
00057         self._BODY = _MAILHOST_BODY
00058 


Member Data Documentation

Definition at line 56 of file test_exportimport.py.

Definition at line 55 of file test_exportimport.py.

Definition at line 33 of file test_exportimport.py.


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