[reportlab-users] pyRXP 0.96

Dinu Gherman reportlab-users@reportlab.com
Thu, 13 Mar 2003 18:48:41 +0100


Robin,

I sense a lack of appreciation for the PyUnit framework... ;-)

Dinu

[localhost:packages/pyRXP/test] dinu% python t.py
Parser keywords OK
Parser().parse keywords OK
Parser()('<a></a>')--> ('a', None, [], None) OK
Parser(ExpandEmpty=1)('<a></a>')--> ('a', {}, [], None) OK
Parser(MakeMutableTree=1)('<a></a>')--> ['a', None, [], None] OK
Parser()('<a/>')--> ('a', None, None, None) OK
Parser(ExpandEmpty=1)('<a/>')--> ('a', {}, [], None) OK
Parser(MakeMutableTree=1)('<a/>')--> ['a', None, None, None] OK
Parser(ExpandEmpty=1, MakeMutableTree=1)('<a/>')--> ['a', {}, [], None] 
OK
Parser()('</a>')--> Error Error: End tag </a> outside of any element\n 
in unnamed entity at line 1 char 4 of [unknown]\nerror return=1\nEnd 
tag </a> outside of any element\nParse Failed!\n !!!!!BAD!!!!! should 
-->  Error Error: End tag </a> outside of any element\n in unnamed 
entity at line 1 char 4 of [unknown]\n
Parser()('<a>A<!--comment--></a>')--> ('a', None, ['A'], None) OK
Parser(ExpandEmpty=1)('<a>A<!--comment--></a>')--> ('a', {}, ['A'], 
None) OK
Parser(ReturnComments=1)('<a>A<!--comment--></a>')--> ('a', None, ['A', 
'<!--comment-->'], None) OK
Parser()('<a>A&lt;&amp;&gt;</a>')--> ('a', None, ['A<&>'], None) OK
Parser(MergePCData=0)('<a>A&lt;&amp;&gt;</a>')--> ('a', None, ['A', 
'<', '&', '>'], None) OK
Parser(ReturnComments=1)('<!--comment--><a/>')--> ('a', None, None, 
None) OK
Parser(ReturnList=1, ReturnComments=1)('<!--comment--><a/>')--> 
['<!--comment-->', ('a', None, None, None)] OK
Parser(ReturnComments=1)('<!--comment--><a/>')--> ('a', None, None, 
None) OK
Parser()('<?xml version="1.0" encoding="LATIN-1"?></a>')--> Error 
Unknown declared encoding LATIN-1\nInternal error, ParserPush failed!\n 
OK


--
Dinu C. Gherman
......................................................................
"Sixty-eight percent of Americans believe in the devil, but only 48 %
believe that God created the universe; 28 % believe in evolution."
(Harper's Magazine, Weekly Review, 11 Mar. 2003)