Back to index

plone3  3.1.7
Classes | Functions | Variables
plone.app.viewletmanager.tests.test_exportimport Namespace Reference

Classes

class  Layer
class  ViewletSettingsStorageXMLAdapterTests
class  _ViewletSettingsStorageSetup
class  exportViewletSettingsStorageTests
class  importViewletSettingsStorageTests

Functions

def test_suite

Variables

dictionary COMMON_SETUP_ORDER
dictionary COMMON_SETUP_HIDDEN
string _VIEWLETS_XML
string _EMPTY_EXPORT
string _CHILD_PURGE_IMPORT
string _FRAGMENT1_IMPORT
string _FRAGMENT2_IMPORT
string _FRAGMENT3_IMPORT
string _FRAGMENT4_IMPORT
string _FRAGMENT5_IMPORT
string _FRAGMENT6_IMPORT

Function Documentation

Definition at line 549 of file test_exportimport.py.

00549 
00550 def test_suite():
00551     from unittest import TestSuite, makeSuite
00552     suite = TestSuite()
00553     suite.addTest(makeSuite(ViewletSettingsStorageXMLAdapterTests))
00554     suite.addTest(makeSuite(exportViewletSettingsStorageTests))
00555     suite.addTest(makeSuite(importViewletSettingsStorageTests))
00556     return suite


Variable Documentation

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object>
00004  <order manager="top" skinname="fancy" purge="True" />
00005  <hidden manager="top" skinname="light" purge="True" />
00006 </object>
00007 """

Definition at line 49 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object />
00004 """

Definition at line 44 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object>
00004  <order manager="top" skinname="fancy">
00005   <viewlet name="three" insert-before="two"/>
00006  </order>
00007 </object>
00008 """

Definition at line 58 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object>
00004  <order manager="top" skinname="*">
00005   <viewlet name="four" insert-after="three"/>
00006  </order>
00007 </object>
00008 """

Definition at line 67 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object>
00004  <order manager="top" skinname="*">
00005   <viewlet name="three" insert-before="*"/>
00006   <viewlet name="four" insert-after="*"/>
00007  </order>
00008 </object>
00009 """

Definition at line 76 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object>
00004  <order manager="top" skinname="*">
00005   <viewlet name="three" remove="1"/>
00006  </order>
00007 </object>
00008 """

Definition at line 86 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object>
00004  <order manager='top' skinname="existing" based-on="fancy">
00005  </order>
00006  <order manager='top' skinname="new" based-on="fancy">
00007   <viewlet name="three" insert-before="two"/>
00008  </order>
00009  <order manager='top' skinname="wrongbase" based-on="invalid_base_id">
00010   <viewlet name="two"/>
00011  </order>
00012 </object>"""

Definition at line 95 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object>
00004  <order manager="top" skinname="added" make_default="True">
00005   <viewlet name="one"/>
00006   <viewlet name="two"/>
00007   <viewlet name="three"/>
00008  </order>
00009  <hidden manager="top" skinname="added" make_default="True">
00010   <viewlet name="two"/>
00011  </hidden>
00012 </object>
00013 """

Definition at line 108 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object>
00004  <order manager="top" skinname="fancy">
00005   <viewlet name="two"/>
00006   <viewlet name="three"/>
00007   <viewlet name="one"/>
00008  </order>
00009  <order manager="top" skinname="basic">
00010   <viewlet name="one"/>
00011  </order>
00012  <hidden manager="top" skinname="light">
00013   <viewlet name="two"/>
00014  </hidden>
00015 </object>
00016 """

Definition at line 27 of file test_exportimport.py.

Initial value:
00001 {
00002     'light': {'top': ('two',)},
00003     }

Definition at line 23 of file test_exportimport.py.

Initial value:
00001 {
00002     'basic': {'top': ('one',)},
00003     'fancy': {'top': ('two', 'three', 'one')},
00004     }

Definition at line 18 of file test_exportimport.py.