Back to index

plone3  3.1.7
Classes | Functions | Variables
GenericSetup.tests.test_utils Namespace Reference

Classes

class  Whatever
class  UtilsTests
class  PropertyManagerHelpersTests
class  MarkerInterfaceHelpersTests
class  ObjectManagerHelpersTests
class  PrettyDocumentTests

Functions

def _testFunc
def test_suite

Variables

string _EMPTY_PROPERTY_EXPORT
string _NORMAL_PROPERTY_EXPORT
string _FIXED_PROPERTY_EXPORT
string _SPECIAL_IMPORT
string _I18N_IMPORT
string _NOPURGE_IMPORT
string _NORMAL_MARKER_EXPORT
string _ADD_IMPORT
string _REMOVE_IMPORT
string _TEST_FUNC_NAME = 'Products.GenericSetup.tests.test_utils._testFunc'
string _WHATEVER_NAME = 'Products.GenericSetup.tests.test_utils.Whatever'
tuple whatever_inst = Whatever()
string _WHATEVER_INST_NAME = 'Products.GenericSetup.tests.test_utils.whatever_inst'

Class Documentation

class GenericSetup::tests::test_utils::Whatever

Definition at line 191 of file test_utils.py.


Function Documentation

def GenericSetup.tests.test_utils._testFunc (   args,
  kw 
) [private]
This is a test.

This is only a test.

Definition at line 182 of file test_utils.py.

00182 
00183 def _testFunc( *args, **kw ):
00184 
00185     """ This is a test.
00186 
00187     This is only a test.
00188     """

Definition at line 552 of file test_utils.py.

00552 
00553 def test_suite():
00554     # reimport to make sure tests are run from Products
00555     from Products.GenericSetup.tests.test_utils import UtilsTests
00556 
00557     return unittest.TestSuite((
00558         unittest.makeSuite(UtilsTests),
00559         unittest.makeSuite(PropertyManagerHelpersTests),
00560         unittest.makeSuite(MarkerInterfaceHelpersTests),
00561         unittest.makeSuite(ObjectManagerHelpersTests),
00562         unittest.makeSuite(PrettyDocumentTests),
00563         ))


Variable Documentation

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <dummy>
00004  <object name="history" meta_type="Generic Setup Tool"/>
00005 </dummy>
00006 """

Definition at line 168 of file test_utils.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <dummy>
00004  <property name="foo_boolean" type="boolean">False</property>
00005  <property name="foo_date" type="date">1970/01/01</property>
00006  <property name="foo_float" type="float">0.0</property>
00007  <property name="foo_int" type="int">0</property>
00008  <property name="foo_lines" type="lines"/>
00009  <property name="foo_long" type="long">0</property>
00010  <property name="foo_string" type="string"></property>
00011  <property name="foo_text" type="text"></property>
00012  <property name="foo_tokens" type="tokens"/>
00013  <property name="foo_selection" select_variable="foobarbaz"
00014     type="selection"></property>
00015  <property name="foo_mselection" select_variable="foobarbaz"
00016     type="multiple selection"/>
00017  <property name="foo_boolean0" type="boolean">False</property>
00018  <property name="foo_int_nodel">0</property>
00019  <property name="foo_float_nodel">0.0</property>
00020  <property name="foo_boolean_nodel">False</property>
00021 </dummy>
00022 """

Definition at line 40 of file test_utils.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <dummy>
00004  <property name="foo_boolean">True</property>
00005  <property name="foo_date">2000/01/01</property>
00006  <property name="foo_float">1.1</property>
00007  <property name="foo_int">1</property>
00008  <property name="foo_lines">
00009   <element value="Foo"/>
00010   <element value="Lines"/>
00011  </property>
00012  <property name="foo_long">1</property>
00013  <property name="foo_string">Foo String</property>
00014  <property name="foo_text">Foo
00015   Text</property>
00016  <property name="foo_tokens">
00017   <element value="Foo"/>
00018   <element value="Tokens"/></property>
00019  <property name="foo_selection" type="selection"
00020     select_variable="foobarbaz">Foo</property>
00021  <property name="foo_mselection">
00022   <element value="Foo"/>
00023   <element value="Baz"/>
00024  </property>
00025  <property name="foo_boolean0">False</property>
00026  <property name="foo_int_nodel">1789</property>
00027  <property name="foo_float_nodel">3.1415</property>
00028  <property name="foo_boolean_nodel">True</property>
00029 </dummy>
00030 """

Definition at line 96 of file test_utils.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <dummy xmlns:i18n="http://xml.zope.org/namespaces/i18n"
00004    i18n:domain="dummy_domain">
00005  <property name="foo_string" i18n:translate="">Foo String</property>
00006 </dummy>
00007 """

Definition at line 135 of file test_utils.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <dummy>
00004  <property name="lines1">
00005   <element value="Foo"/>
00006   <element value="Bar"/>
00007  </property>
00008  <property name="lines2" purge="True">
00009   <element value="Foo"/>
00010   <element value="Bar"/>
00011  </property>
00012  <property name="lines3" purge="False">
00013   <element value="Foo"/>
00014   <element value="Bar"/>
00015  </property>
00016 </dummy>
00017 """

Definition at line 143 of file test_utils.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <dummy>
00004  <marker name="Products.GenericSetup.testing.IDummyMarker"/>
00005 </dummy>
00006 """

Definition at line 161 of file test_utils.py.

Definition at line 63 of file test_utils.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <dummy>
00004  <object name="history" remove="True"/>
00005 </dummy>
00006 """

Definition at line 174 of file test_utils.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <dummy>
00004  <!-- ignore comment, import 0 as False -->
00005  <property name="foo_boolean0" type="boolean">0</property>
00006 </dummy>
00007 """

Definition at line 127 of file test_utils.py.

string GenericSetup.tests.test_utils._TEST_FUNC_NAME = 'Products.GenericSetup.tests.test_utils._testFunc'

Definition at line 189 of file test_utils.py.

string GenericSetup.tests.test_utils._WHATEVER_INST_NAME = 'Products.GenericSetup.tests.test_utils.whatever_inst'

Definition at line 199 of file test_utils.py.

string GenericSetup.tests.test_utils._WHATEVER_NAME = 'Products.GenericSetup.tests.test_utils.Whatever'

Definition at line 194 of file test_utils.py.

Definition at line 196 of file test_utils.py.