Back to index

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

List of all members.

Public Member Functions

def test_empty
def test_with_policy

Static Public Attributes

 layer = ExportImportZCMLLayer
list MAJOR_MINOR_ID = _TEST_PREDICATES[0]
list MAJOR = _TEST_PREDICATES[0]
list MINOR = _TEST_PREDICATES[0]
list MAJOR_MINOR_TYPENAME = _TEST_PREDICATES[0]
list EXTENSION_ID = _TEST_PREDICATES[1]
list EXTENSIONS = _TEST_PREDICATES[1]
list EXTENSION_TYPENAME = _TEST_PREDICATES[1]
list MIMETYPE_REGEX_ID = _TEST_PREDICATES[2]
list MIMETYPE_REGEX = _TEST_PREDICATES[2]
list MIMETYPE_REGEX_TYPENAME = _TEST_PREDICATES[2]
list NAME_REGEX_ID = _TEST_PREDICATES[3]
list NAME_REGEX = _TEST_PREDICATES[3]
list NAME_REGEX_TYPENAME = _TEST_PREDICATES[3]

Detailed Description

Definition at line 169 of file test_contenttyperegistry.py.


Member Function Documentation

Definition at line 173 of file test_contenttyperegistry.py.

00173 
00174     def test_empty(self):
00175         from Products.CMFCore.exportimport.contenttyperegistry \
00176                 import exportContentTypeRegistry
00177 
00178         site = self._initSite(mit_predikat=False)
00179         context = DummyExportContext(site)
00180         exportContentTypeRegistry(context)
00181 
00182         self.assertEqual(len(context._wrote), 1)
00183         filename, text, content_type = context._wrote[0]
00184         self.assertEqual(filename, 'contenttyperegistry.xml')
00185         self._compareDOM(text, self._EMPTY_EXPORT)
00186         self.assertEqual(content_type, 'text/xml')

Here is the call graph for this function:

Definition at line 187 of file test_contenttyperegistry.py.

00187 
00188     def test_with_policy(self):
00189         from Products.CMFCore.exportimport.contenttyperegistry \
00190                 import exportContentTypeRegistry
00191 
00192         site = self._initSite(mit_predikat=True)
00193         context = DummyExportContext(site)
00194         exportContentTypeRegistry(context)
00195 
00196         self.assertEqual(len(context._wrote), 1)
00197         filename, text, content_type = context._wrote[0]
00198         self.assertEqual(filename, 'contenttyperegistry.xml')
00199         self._compareDOM(text, self._WITH_POLICY_EXPORT)
00200         self.assertEqual(content_type, 'text/xml')
00201 

Here is the call graph for this function:


Member Data Documentation

Definition at line 99 of file test_contenttyperegistry.py.

Definition at line 101 of file test_contenttyperegistry.py.

Definition at line 100 of file test_contenttyperegistry.py.

Definition at line 171 of file test_contenttyperegistry.py.

Definition at line 96 of file test_contenttyperegistry.py.

Definition at line 95 of file test_contenttyperegistry.py.

Definition at line 98 of file test_contenttyperegistry.py.

Definition at line 103 of file test_contenttyperegistry.py.

Definition at line 102 of file test_contenttyperegistry.py.

Definition at line 104 of file test_contenttyperegistry.py.

Definition at line 97 of file test_contenttyperegistry.py.

Definition at line 106 of file test_contenttyperegistry.py.

Definition at line 105 of file test_contenttyperegistry.py.

Definition at line 107 of file test_contenttyperegistry.py.


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