mς %U²Ic@sΔdkZdklZdklZlZdfd„ƒYZd„ZeƒZei ddƒZ de _ ee i djƒd e _ ee i d jƒd e _ ee i d jƒde _ ee i djƒde _ ee i djƒd e _ ee i d jƒd e _ ee i d jƒde _ ee i djƒde _ ee i djƒd e _ ee i d jƒd e _ ee i d jƒde _ ee i djƒd d d dddddddddddgZx'eD]Zee eeeeƒƒqηWdZde _ ye ied ƒWnVeij oGdGe iGeie iƒGHdGe iGHdGe iGHdGe iGHnXei ddƒZ d e _ x'eD]Zee eeeeƒƒq¨Wye ied ƒWnVeij oGdGe iGeie iƒGHdGe iGHdGe iGHdGe iGHnXei ddƒZ d e _ x'eD]Zee eeeeƒƒqZWdkZeieƒZye ieƒWnVeij oGdGe iGeie iƒGHdGe iGHdGe iGHdGe iGHnXHdGHei ƒei ddƒei ddƒd GHyei dd!ƒWnej oZd"GHeGHnXd#GHyei dd$ƒWne j oZd%GHeGHnXd&GHei dd'ƒei ƒZ!gZ"d(„Z#e#e!_$e#e!_%e!id)d ƒe"dZ&e'e"ƒd*jod+Ge'e"ƒGHnx8e"D]0Z(e&e(j od,Gd-GHd.Ge)e"ƒGHPq.q.Wdk*Z*d/fd0„ƒYZ+d1„Z,gd2„Z-e-ƒ\Z Z.e,e i/d3ƒe id4d ƒe.i0d5gd6ƒe-d gƒ\Z Z.e id7d ƒe.i0d8d9d:d;d<d=d>d?gd@ƒe-ƒ\Z Z.e idAd ƒe.i0dBgd6ƒe-d gƒ\Z Z.e id4d ƒe.i0d8d9d:d;d>d=gdCƒe-d d gƒ\Z Z.de _1e id4d ƒe.i0d8d:dDd>dEdFgdGƒe-d d gƒ\Z Z.e idHd ƒe.i0d8d9d:dDd;d>dEd=dFg dGƒe-dd d gƒ\Z Z.e idId ƒe.i0d8d9d:dDd;d>dEdJdFg dCƒe-dd d gƒ\Z Z.e idKd ƒe.i0d8d9d:dDd;d>dEd=dLdMdNdOdFg dCƒdP„Z$ei ƒZ e$e _$ye idQd ƒWn=e2j o1Zei3ddRjodSei3dGHqpnXdTGHdUfdV„ƒYZ4ei ƒZ e4dadbdcdddedfge ƒZ.e id`d ƒdS(gN(sexpat(ssortdicts TestFailedt OutputtercBstZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Zd„ZRS(NcCsdGt|ƒGt|ƒGHdS(NsStart element: (treprtnametsortdicttattrs(tselfRR((t./data/zmath/lib/python2.4/test/test_pyexpat.pytStartElementHandler scCsdGt|ƒGHdS(NsEnd element: (RR(RR((RtEndElementHandlerscCs/|iƒ}|odGHdGt|ƒGHndS(NsCharacter data:s (tdatatstripR(RR ((RtCharacterDataHandlers cCsdGt|ƒGt|ƒGHdS(NsPI: (RttargetR (RR R ((RtProcessingInstructionHandlerscCsdGt|ƒGt|ƒGHdS(Ns NS decl: (Rtprefixturi(RRR((RtStartNamespaceDeclHandlerscCsdGt|ƒGHdS(NsEnd of NS decl: (RR(RR((RtEndNamespaceDeclHandlerscCs dGHdS(NsStart of CDATA section((R((RtStartCdataSectionHandler!scCs dGHdS(NsEnd of CDATA section((R((RtEndCdataSectionHandler$scCsdGt|ƒGHdS(Ns Comment: (Rttext(RR((RtCommentHandler'scGs|\}}}}dG|GHdS(NsNotation declared:(targsRtbasetsysidtpubid(RRRRRR((RtNotationDeclHandler*scGs"|\}}}}}dG|GHdS(NsUnparsed entity decl: (Rt entityNameRtsystemIdtpublicIdt notationName(RRRRRRR((RtUnparsedEntityDeclHandler.scCs dGHdS(NsNot standalonei((RtuserData((RtNotStandaloneHandler2scGs#|\}}}}dG|dGHdS(NsExternal entity ref:i(RtcontextRtsysIdtpubId(RRR$R#RR"((RtExternalEntityRefHandler6s cCsdS(N((RR ((RtDefaultHandler;scCsdS(N((RR ((RtDefaultHandlerExpand>s(t__name__t __module__RRR R RRRRRRRR!R%R&R'(((RR s              cCs|o dGHndGHdS(NsOK.sNot OK.(tok(R*((RtconfirmBs tnamespace_separatort!iiiRRR R RRRRRRRR&R'R%sn %unparsed_entity; ]> Contents of subelements &external_entity; s** Errors** Lines ** Columns** BytesFTesting constructor for proper handling of namespace_separator values:t sLegal values tested o.k.i*sCaught expected TypeError:s#Failed to catch expected TypeError.stoo longsCaught expected ValueError:s$Failed to catch expected ValueError.tcGsti|ƒdS(N(tLtappendR(RR((Rt collectorΟss is&L should only contain 6 entries; founds8expected L to contain many references to the same strings (it didn't)sL =t TextCollectorcBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCs g|_dS(N(Rtstuff(Rtparser((Rt__init__βscCs3t|i|jd||itt|ƒfƒdS(Ns%s stuff = %r expected = %r(trequireRR4texpectedtlabeltmaptunicode(RR8R9((RtcheckεscCs|ii|ƒdS(N(RR4R1R(RR((RR κscCs[|iid|ƒ|idƒ}|djo dt_n|djo dt_ndS(Ns<%s>s buffer-texttyesitnoi( RR4R1RRtgettbtR5t buffer_text(RRRR@((RRνs    cCs|iid|ƒdS(Ns(RR4R1R(RR((RRυscCs|iid|ƒdS(Ns (RR4R1R (RR ((RRψs(R(R)R6R<R RRR(((RR3αs      cCs|pt|ƒ‚ndS(N(tcondt TestFailedR9(RBR9((RR7ϋscCsrtiƒ}t|i dƒd|_t|ƒ}|i|_x'|D]}t ||t ||ƒƒqEW||fS(Ns#buffer_text not disabled by defaulti( texpatt ParserCreateR5R7RAR3thandlerR thandlersRtsetattrtgetattr(RGRR5RF((Rtsetups     s5text buffering either not acknowledged or not enableds123t123s$buffered text not properly collapseds912 34 5st1st2s t3ss4 5s*buffering control not reacting as expecteds&1<2> 3s1<2> 3s buffered text not properly splitsssshuh?s123s12345 t345s,12345 s t4s t5cCst|ƒ‚dS(N(t RuntimeErrorR(RR((RR<sstas/Expected RuntimeError for element 'a'; found %rsExpected RuntimeError for 'a't PositionTestcBs,tZd„Zd„Zd„Zd„ZRS(NcCs=||_|i|i_|i|i_||_d|_dS(Ni(R5RRRt expected_listtupto(RRUR5((RR6Ms   cCs|idƒdS(Nts(Rt check_pos(RRR((RRTscCs|idƒdS(Nte(RRX(RR((RRWscCsƒ||ii|ii|iif}t|it |i ƒjdƒ|i |i}t||jd||fƒ|id7_dS(Nstoo many parser eventssexpected position %s, got %si( teventRR5tCurrentByteIndextCurrentLineNumbertCurrentColumnNumbertposR7RVtlenRUR8(RRZR^R8((RRXZs$ (R(R)R6RRRX(((RRTKs   RWii iRYiiiis (RWiii(RWiii(RWi ii(RYiii(RYiii(RYiii(5tpyexpatt xml.parsersRDttest.test_supportRRCRR+toutRER5treturns_unicodetordered_attributestspecified_attributest HANDLER_NAMESRRHRIR tParseterrort ErrorCodet ErrorStringtErrorLineNumbertErrorColumnNumbertErrorByteIndextStringIOtfilet ParseFiletNonet TypeErrorRYt ValueErrortpR0R2RRttagR_tentryRtsysR3R7RJRFRAR<R RRRRT(R5RvRpR`R2RcR+RFRCRDRR0RxR3R RTRRYRRoR7RuRwRRgRJ((Rt?s"  7  0                           !  $$0