Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFTopic.tests.test_exportimport Namespace Reference

Classes

class  TopicExportImportTests

Functions

def test_suite

Variables

string _DATE_STR = '2005-11-20T12:00:00Z'
tuple _CRITERIA_DATA
string _EMPTY_TOPIC_CRITERIA
string _STRING_TOPIC_CRITERIA
string _INTEGER_TOPIC_CRITERIA
string _DATE_TOPIC_CRITERIA
string _LIST_TOPIC_CRITERIA
string _SORT_TOPIC_CRITERIA
string _MIXED_TOPIC_CRITERIA

Function Documentation

Definition at line 515 of file test_exportimport.py.

00515 
00516 def test_suite():
00517     return unittest.TestSuite((
00518         unittest.makeSuite(TopicExportImportTests),
00519         ))

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 (
00002     ('a', 'String Criterion', {'value': 'A'}),
00003     ('b', 'Integer Criterion', {'value': 3, 'direction': 'min'}),
00004     ('c', 'Friendly Date Criterion', {'value': DateTime(_DATE_STR),
00005                                       'operation': 'min',
00006                                       'daterange': 'old',
00007                                      }),
00008     ('d', 'List Criterion', {'value': ('D', 'd'), 'operator': 'or'}),
00009     ('e', 'Sort Criterion', {'reversed': 0}),
00010 )

Definition at line 32 of file test_exportimport.py.

string CMFTopic.tests.test_exportimport._DATE_STR = '2005-11-20T12:00:00Z'

Definition at line 31 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0" ?>
00003 <criteria>
00004  <criterion
00005     criterion_id="crit__c"
00006     type="Friendly Date Criterion"
00007     field="c">
00008   <attribute name="value" value="%s" />
00009   <attribute name="operation" value="min" />
00010   <attribute name="daterange" value="old" />
00011  </criterion>
00012 </criteria>
00013 """

Definition at line 449 of file test_exportimport.py.

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

Definition at line 418 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0" ?>
00003 <criteria>
00004  <criterion
00005     criterion_id="crit__b"
00006     type="Integer Criterion"
00007     field="b">
00008   <attribute name="value" value="3" />
00009   <attribute name="direction" value="min" />
00010  </criterion>
00011 </criteria>
00012 """

Definition at line 436 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0" ?>
00003 <criteria>
00004  <criterion
00005     criterion_id="crit__d"
00006     type="List Criterion"
00007     field="d">
00008   <attribute name="value" value="D,d" />
00009   <attribute name="operator" value="or" />
00010  </criterion>
00011 </criteria>
00012 """

Definition at line 463 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0" ?>
00003 <criteria>
00004  <criterion
00005     criterion_id="crit__a"
00006     type="String Criterion"
00007     field="a">
00008   <attribute name="value" value="A" />
00009  </criterion>
00010  <criterion
00011     criterion_id="crit__c"
00012     type="Friendly Date Criterion"
00013     field="c">
00014   <attribute name="value" value="%s" />
00015   <attribute name="operation" value="min" />
00016   <attribute name="daterange" value="old" />
00017  </criterion>
00018  <criterion
00019     criterion_id="crit__e"
00020     type="Sort Criterion"
00021     field="e">
00022   <attribute name="reversed" value="False" />
00023  </criterion>
00024 </criteria>
00025 """

Definition at line 488 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0" ?>
00003 <criteria>
00004  <criterion
00005     criterion_id="crit__e"
00006     type="Sort Criterion"
00007     field="e">
00008   <attribute name="reversed" value="False" />
00009  </criterion>
00010 </criteria>
00011 """

Definition at line 476 of file test_exportimport.py.

Initial value:
00001 """\
00002 <?xml version="1.0" ?>
00003 <criteria>
00004  <criterion
00005     criterion_id="crit__a"
00006     type="String Criterion"
00007     field="a">
00008   <attribute name="value" value="A" />
00009  </criterion>
00010 </criteria>
00011 """

Definition at line 424 of file test_exportimport.py.