Back to index

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

List of all members.

Public Member Functions

def setUp

Static Public Attributes

 layer = ExportImportZCMLLayer

Private Member Functions

def _getTargetClass
def _populate
def _verifyImport

Private Attributes

 _obj
 _BODY

Detailed Description

Definition at line 32 of file test_exportimport.py.


Member Function Documentation

Definition at line 36 of file test_exportimport.py.

00036 
00037     def _getTargetClass(self):
00038         from Products.GenericSetup.OFSP.exportimport import FolderXMLAdapter
00039 
00040         return FolderXMLAdapter

Definition at line 41 of file test_exportimport.py.

00041 
00042     def _populate(self, obj):
00043         obj._setPropValue('title', 'Foo')

Here is the caller graph for this function:

Definition at line 44 of file test_exportimport.py.

00044 
00045     def _verifyImport(self, obj):
00046         self.assertEqual(type(obj.title), str)
00047         self.assertEqual(obj.title, 'Foo')

Here is the caller graph for this function:

Definition at line 48 of file test_exportimport.py.

00048 
00049     def setUp(self):
00050         from OFS.Folder import Folder
00051 
00052         BodyAdapterTestCase.setUp(self)
00053         self._obj = Folder('foo_folder')
00054         self._BODY = _FOLDER_BODY
00055 


Member Data Documentation

Definition at line 53 of file test_exportimport.py.

Definition at line 52 of file test_exportimport.py.

Definition at line 34 of file test_exportimport.py.


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