Back to index

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

Classes

class  DummySite
class  DummySkinsTool
class  _DVRegistrySetup
class  DirectoryViewAdapterTests
class  SkinsToolXMLAdapterTests
class  _SkinsSetup
class  exportSkinsToolTests
class  importSkinsToolTests

Functions

def test_suite

Variables

tuple _TESTS_PATH = os.path.split(__file__)
string _DIRECTORYVIEW_XML
string _SKINSTOOL_BODY
string _EMPTY_EXPORT
string _NORMAL_EXPORT
string _FRAGMENT1_IMPORT
string _FRAGMENT2_IMPORT
string _FRAGMENT3_IMPORT
string _FRAGMENT4_IMPORT
string _FRAGMENT5_IMPORT
string _FRAGMENT6_IMPORT

Function Documentation

Definition at line 625 of file test_skins.py.

00625 
00626 def test_suite():
00627     # reimport to make sure tests are run from Products
00628     from Products.CMFCore.exportimport.tests.test_skins \
00629             import DirectoryViewAdapterTests
00630     from Products.CMFCore.exportimport.tests.test_skins \
00631             import exportSkinsToolTests
00632     from Products.CMFCore.exportimport.tests.test_skins \
00633             import importSkinsToolTests
00634     from Products.CMFCore.exportimport.tests.test_skins \
00635             import SkinsToolXMLAdapterTests
00636 
00637     return unittest.TestSuite((
00638         unittest.makeSuite(DirectoryViewAdapterTests),
00639         unittest.makeSuite(SkinsToolXMLAdapterTests),
00640         unittest.makeSuite(exportSkinsToolTests),
00641         unittest.makeSuite(importSkinsToolTests),
00642         ))

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 """\
00002 <object name="foo_directoryview" meta_type="Filesystem Directory View"
00003    directory="CMFCore/exportimport/tests/one"/>
00004 """

Definition at line 38 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="Dummy Skins Tool" allow_any="False"
00004    cookie_persistence="False" default_skin="default_skin"
00005    request_varname="request_varname"/>
00006 """

Definition at line 55 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="Dummy Skins Tool">
00004  <object name="three" meta_type="Filesystem Directory View"
00005     package="Products.CMFCore" path="exportimport/tests/three"/>
00006  <skin-path name="*">
00007   <layer name="three" insert-before="two"/>
00008  </skin-path>
00009 </object>
00010 """

Definition at line 83 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="Dummy Skins Tool">
00004  <object name="four" meta_type="Filesystem Directory View"
00005     directory="Products.CMFCore.exportimport.tests:four"/>
00006  <skin-path name="*">
00007   <layer name="four" insert-after="three"/>
00008  </skin-path>
00009 </object>
00010 """

Definition at line 94 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="Dummy Skins Tool">
00004  <object name="three" meta_type="Filesystem Directory View"
00005     directory="CMFCore/exportimport/tests/three"/>
00006  <object name="four" meta_type="Filesystem Directory View"
00007     directory="CMFCore/exportimport/tests/four"/>
00008  <skin-path name="*">
00009   <layer name="three" insert-before="*"/>
00010   <layer name="four" insert-after="*"/>
00011  </skin-path>
00012 </object>
00013 """

Definition at line 105 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="Dummy Skins Tool">
00004  <skin-path name="*">
00005   <layer name="three" remove="1"/>
00006  </skin-path>
00007 </object>
00008 """

Definition at line 119 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="Dummy Skins Tool">
00004  <skin-path name="existing" based-on="basic">
00005  </skin-path>
00006  <skin-path name="new" based-on="basic">
00007   <layer name="two" insert-before="three"/>
00008  </skin-path>
00009  <skin-path name="wrongbase" based-on="invalid_base_id">
00010   <layer name="two" insert-before="three"/>
00011  </skin-path>
00012 </object>"""

Definition at line 128 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="Dummy Skins Tool" allow_any="True"
00004    cookie_persistence="True" default_skin="basic" request_varname="skin_var">
00005  <object name="one" meta_type="Filesystem Directory View"
00006     directory="Products.CMFCore.exportimport.tests:one"/>
00007  <object name="three" meta_type="Filesystem Directory View"
00008     directory="Products.CMFCore.exportimport.tests:three"/>
00009  <object name="two" meta_type="Filesystem Directory View"
00010     directory="Products.CMFCore.exportimport.tests:two"/>
00011  <skin-path name="basic">
00012   <layer name="one"/>
00013  </skin-path>
00014  <skin-path name="fancy" remove="True"/>
00015  <skin-path name="invalid" remove="True"/>
00016 </object>
00017 """

Definition at line 142 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="Dummy Skins Tool" allow_any="True"
00004    cookie_persistence="True" default_skin="basic" request_varname="skin_var">
00005  <object name="one" meta_type="Filesystem Directory View"
00006     directory="Products.CMFCore.exportimport.tests:one"/>
00007  <object name="three" meta_type="Filesystem Directory View"
00008     directory="Products.CMFCore.exportimport.tests:three"/>
00009  <object name="two" meta_type="Filesystem Directory View"
00010     directory="Products.CMFCore.exportimport.tests:two"/>
00011  <skin-path name="basic">
00012   <layer name="one"/>
00013  </skin-path>
00014  <skin-path name="fancy">
00015   <layer name="three"/>
00016   <layer name="two"/>
00017   <layer name="one"/>
00018  </skin-path>
00019 </object>
00020 """

Definition at line 62 of file test_skins.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_skins" meta_type="CMF Skins Tool" allow_any="False"
00004    cookie_persistence="False" default_skin="" request_varname="portal_skin">
00005  <object name="foo_directoryview" meta_type="Filesystem Directory View"
00006     directory="Products.CMFCore.exportimport.tests:one"/>
00007  <skin-path name="foo_path">
00008   <layer name="one"/>
00009  </skin-path>
00010 </object>
00011 """

Definition at line 43 of file test_skins.py.

tuple CMFCore.exportimport.tests.test_skins._TESTS_PATH = os.path.split(__file__)

Definition at line 36 of file test_skins.py.