Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFCore.exportimport.tests.test_contenttyperegistry Namespace Reference

Classes

class  ContentTypeRegistryXMLAdapterTests
class  _ContentTypeRegistrySetup
class  exportContentTypeRegistryTests
class  importContentTypeRegistryTests

Functions

def test_suite

Variables

tuple _TEST_PREDICATES
string _CTR_BODY

Function Documentation

Definition at line 242 of file test_contenttyperegistry.py.

00242 
00243 def test_suite():
00244     return unittest.TestSuite((
00245         unittest.makeSuite(ContentTypeRegistryXMLAdapterTests),
00246         unittest.makeSuite(exportContentTypeRegistryTests),
00247         unittest.makeSuite(importContentTypeRegistryTests),
00248         ))

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="content_type_registry" meta_type="Content Type Registry">
00004  <predicate name="foo_predicate" content_type_name="Foo Type"
00005     predicate_type="major_minor">
00006   <argument value="foo_major"/>
00007   <argument value="foo_minor"/>
00008  </predicate>
00009  <predicate name="bar_predicate" content_type_name="Bar Type"
00010     predicate_type="extension">
00011   <argument value="bar"/>
00012  </predicate>
00013  <predicate name="baz_predicate" content_type_name="Baz Type"
00014     predicate_type="mimetype_regex">
00015   <argument value="baz/.*"/>
00016  </predicate>
00017  <predicate name="foobar_predicate" content_type_name="Foobar Type"
00018     predicate_type="name_regex">
00019   <argument value="foobar-.*"/>
00020  </predicate>
00021 </object>
00022 """

Definition at line 37 of file test_contenttyperegistry.py.

Initial value:
00001 (
00002  ('plain_text', 'major_minor', ('text', 'plain,javascript'), 'File'),
00003  ('stylesheets', 'extension', ('css,xsl,xslt',), 'Text File'),
00004  ('images', 'mimetype_regex', ('image/.*',), 'Image'),
00005  ('logfiles', 'name_regex', ('error_log-.*',), 'Log File'),
00006 )

Definition at line 30 of file test_contenttyperegistry.py.