Back to index

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

List of all members.

Public Member Functions

def setUp

Static Public Attributes

 layer = ExportImportZCMLLayer

Private Member Functions

def _getTargetClass
def _populate

Private Attributes

 _obj
 _BODY

Detailed Description

Definition at line 61 of file test_contenttyperegistry.py.


Member Function Documentation

Definition at line 65 of file test_contenttyperegistry.py.

00065 
00066     def _getTargetClass(self):
00067         from Products.CMFCore.exportimport.contenttyperegistry \
00068                 import ContentTypeRegistryXMLAdapter
00069 
00070         return ContentTypeRegistryXMLAdapter

Definition at line 71 of file test_contenttyperegistry.py.

00071 
00072     def _populate(self, obj):
00073         obj.addPredicate('foo_predicate', 'major_minor')
00074         obj.getPredicate('foo_predicate').edit('foo_major', 'foo_minor')
00075         obj.assignTypeName('foo_predicate', 'Foo Type')
00076         obj.addPredicate('bar_predicate', 'extension')
00077         obj.getPredicate('bar_predicate').edit('bar')
00078         obj.assignTypeName('bar_predicate', 'Bar Type')
00079         obj.addPredicate('baz_predicate', 'mimetype_regex')
00080         obj.getPredicate('baz_predicate').edit('baz/.*')
00081         obj.assignTypeName('baz_predicate', 'Baz Type')
00082         obj.addPredicate('foobar_predicate', 'name_regex')
00083         obj.getPredicate('foobar_predicate').edit('foobar-.*')
00084         obj.assignTypeName('foobar_predicate', 'Foobar Type')

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 85 of file test_contenttyperegistry.py.

00085 
00086     def setUp(self):
00087         from Products.CMFCore.ContentTypeRegistry import ContentTypeRegistry
00088 
00089         BodyAdapterTestCase.setUp(self)
00090         self._obj = ContentTypeRegistry()
00091         self._BODY = _CTR_BODY
00092 


Member Data Documentation

Definition at line 90 of file test_contenttyperegistry.py.

Definition at line 89 of file test_contenttyperegistry.py.

Definition at line 63 of file test_contenttyperegistry.py.


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