Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
CMFCore.exportimport.tests.test_properties.PropertiesXMLAdapterTests Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_properties.PropertiesXMLAdapterTests:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_properties.PropertiesXMLAdapterTests:
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 62 of file test_properties.py.


Member Function Documentation

Definition at line 66 of file test_properties.py.

00066 
00067     def _getTargetClass(self):
00068         from Products.CMFCore.exportimport.properties \
00069                 import PropertiesXMLAdapter
00070 
00071         return PropertiesXMLAdapter

Definition at line 72 of file test_properties.py.

00072 
00073     def _populate(self, obj):
00074         obj._setPropValue('title', 'Foo')
00075         obj._setProperty('default_charset', 'iso-8859-1', 'string')
00076         obj._setProperty('foo_string', 'foo', 'string')
00077         obj._setProperty('bar_string', 'Bär', 'string')
00078         obj._setProperty('foo_boolean', False, 'boolean')

Here is the caller graph for this function:

Definition at line 79 of file test_properties.py.

00079 
00080     def _verifyImport(self, obj):
00081         self.assertEqual(type(obj.title), str)
00082         self.assertEqual(obj.title, 'Foo')
00083         self.assertEqual(type(obj.foo_string), str)
00084         self.assertEqual(obj.foo_string, 'foo')
00085         self.assertEqual(type(obj.bar_string), str)
00086         self.assertEqual(obj.bar_string, 'Bär')
00087         self.assertEqual(type(obj.foo_boolean), bool)
00088         self.assertEqual(obj.foo_boolean, False)

Here is the caller graph for this function:

Definition at line 89 of file test_properties.py.

00089 
00090     def setUp(self):
00091         from Products.CMFCore.PortalObject import PortalObjectBase
00092 
00093         BodyAdapterTestCase.setUp(self)
00094         self._obj = PortalObjectBase('foo_site')
00095         self._BODY = _PROPERTIES_BODY
00096 


Member Data Documentation

Definition at line 94 of file test_properties.py.

Definition at line 93 of file test_properties.py.

Definition at line 64 of file test_properties.py.


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