ó {G_Tc@sóddlmZmZmZmZmZy eƒWnek rRedƒ‚nXddlmZm Z m Z m Z m Z ddl mZddlmZddlmZmZmZddlmZddlZddlZddlZddljZdd lmZmZddl Z ed d d ƒZ!ed d d ƒZ"e#Z$ej%j$ ryej&j'ej(ƒWn e)e*e+fk rŒe,Z$nXne j-e$dƒZ.dZ/de j0fd„ƒYZ1de j0fd„ƒYZ2de j0fd„ƒYZ3dZ4dfd„ƒYZ5de5e j0fd„ƒYZ6de5e j0fd„ƒYZ7de5e j0fd„ƒYZ8de j0fd „ƒYZ9e:e"ƒj;ƒZ<d!e1fd"„ƒYZ=d#e j0fd$„ƒYZ>d%e1fd&„ƒYZ?d'„Z@eAd(krïe@ƒndS()iÿÿÿÿ(t make_parsertContentHandlert SAXExceptiontSAXReaderNotAvailabletSAXParseExceptionsno XML parsers available(t XMLGeneratortescapetunescapet quoteattrt XMLFilterBase(t create_parser(tfeature_namespaces(t InputSourcetAttributesImpltAttributesNSImpl(tStringION(tfindfilet run_unitteststest.xmltsubdirt xmltestdatas test.xml.outs"Requires unicode filenames supports%http://www.python.org/xml-ns/saxtest/t XmlTestBasecBs#eZd„Zd„Zd„ZRS(cCsW|jt|jdƒ|jt|jdƒ|jt|jdƒ|jt|jdƒ|jt|jdƒ|j|jƒdƒ|j|j ƒgƒ|j|j ƒgƒ|jt |ƒdƒ|j |j dƒƒ|j|jƒgƒ|j|jdƒdƒ|j|jddƒdƒ|j|jƒgƒ|j|jƒgƒdS(Ntattritattrsi(t assertRaisestKeyErrortgetValuetgetValueByQNametgetNameByQNametgetQNameByNamet __getitem__t assertEqualt getLengthtgetNamest getQNamestlent assertFalsethas_keytkeystgettNonetitemstvalues(tselfR((s)/usr/local/lib/python2.7/test/test_sax.pytverify_empty_attrs*scCs{|jt|jtdfƒ|jt|jdƒ|jt|jdƒ|jt|jtdfƒ|jt|jtdfƒ|j|j ƒdƒ|j|j ƒgƒ|j|j ƒgƒ|jt |ƒdƒ|j |jtdfƒƒ|j|jƒgƒ|j|jtdfƒdƒ|j|jtdfdƒdƒ|j|jƒgƒ|j|jƒgƒdS(NRsns:attrii(RRRtns_uriRRRRRRR R!R"R#R$R%R&R'R(R)(R*R((s)/usr/local/lib/python2.7/test/test_sax.pytverify_empty_nsattrs;s"cCsp|j|jƒdƒ|j|jƒdgƒ|j|jƒdgƒ|jt|ƒdƒ|j|jdƒƒ|j|jƒdgƒ|j|jdƒdƒ|j|jddƒdƒ|j|j ƒdgƒ|j|j ƒdgƒ|j|j dƒdƒ|j|j dƒdƒ|j|j dƒdƒ|j|ddƒ|j|jdƒdƒdS(NiRtvali(sattrR.(RRR R!R"t assertTrueR$R%R&R(R)RRRR(R*R((s)/usr/local/lib/python2.7/test/test_sax.pytverify_attrs_wattrLs(t__name__t __module__R+R-R0(((s)/usr/local/lib/python2.7/test/test_sax.pyR)s  tMakeParserTestcBseZd„ZRS(cCsšddlm}|ƒ}ddlm}|ƒ}ddlm}|ƒ}ddlm}|ƒ}ddlm}|ƒ}ddlm}|ƒ}dS(Niÿÿÿÿ(R(txml.saxR(R*Rtp((s)/usr/local/lib/python2.7/test/test_sax.pyttest_make_parser2^s     (R1R2R6(((s)/usr/local/lib/python2.7/test/test_sax.pyR3]st SaxutilsTestcBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z RS( cCs|jtdƒdƒdS(NsDonald Duck & CosDonald Duck & Co(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_escape_basicxscCs|jtdƒdƒdS(Nss<Donald Duck & Co>(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_escape_all{scCs$|jtdidd6ƒdƒdS(Ns Hei pÃ¥ degsåsÃ¥sHei på deg(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_escape_extrascCs|jtdƒdƒdS(NsDonald Duck & CosDonald Duck & Co(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_unescape_basic„scCs|jtdƒdƒdS(Ns<Donald Duck & Co>s(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_unescape_all‡scCs$|jtdidd6ƒdƒdS(Ns Hei pÃ¥ degsåsÃ¥sHei på deg(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_unescape_extra‹scCs$|jtdidd6ƒdƒdS(Ns &foo;tsplats&foo;(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_unescape_amp_extrascCs|jtdƒdƒdS(NsDonald Duck & Cos"Donald Duck & Co"(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_quoteattr_basic“scCs|jtdƒdƒdS(NsIncludes "double" quotess'Includes "double" quotes'(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_single_quoteattr—scCs|jtdƒdƒdS(NsIncludes 'single' quotess"Includes 'single' quotes"(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_double_quoteattr›scCs|jtdƒdƒdS(Ns%Includes 'single' and "double" quotess1"Includes 'single' and "double" quotes"(RR(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_single_double_quoteattrŸscCstdgƒ}dS(Nsxml.parsers.no_such_parser(R(R*R5((s)/usr/local/lib/python2.7/test/test_sax.pyttest_make_parser¤s(R1R2R8R9R:R;R<R=R?R@RARBRCRD(((s)/usr/local/lib/python2.7/test/test_sax.pyR7vs           s, t XmlgenTestcBs¡eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„ZRS(cCsg|jƒ}t|ƒ}|jƒ|jdiƒ|jdƒ|jƒ|j|jƒtdƒdS(Ntdocs ( tioclassRt startDocumentt startElementt endElementt endDocumentRtgetvaluetstart(R*tresulttgen((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_basic¯s     cCst|jƒ}t|ƒ}|jƒ|jdiƒ|jdƒ|jdƒ|jƒ|j|jƒt dƒdS(NRFthuheishuhei( RGRRHRIt charactersRJRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_content¹s      cCsw|jƒ}t|ƒ}|jƒ|jddƒ|jdiƒ|jdƒ|jƒ|j|jƒt dƒdS(NttesttdataRFs( RGRRHtprocessingInstructionRIRJRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_piÅs     cCst|jƒ}t|ƒ}|jƒ|jdiƒ|jdƒ|jdƒ|jƒ|j|jƒt dƒdS(NRFs<huhei&( RGRRHRIRRRJRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_content_escapeÑs      cCsÚ|jƒ}t|ƒ}|jƒ|jdidd6ƒ|jdidd6ƒ|jdƒ|jdidd6ƒ|jdƒ|jdidd6ƒ|jdƒ|jdƒ|jƒ|j|jƒtdƒdS( NRFt"tatet's'"s sK( RGRRHRIRJRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_attr_escapeÞs        cCs¤d }x—|D]}|jƒ}t|d|ƒ}|jƒ|jdid d 6ƒ|jd ƒ|jdƒ|jƒ|j|jƒd |j |d ƒƒq WdS(Ns iso-8859-15sutf-8sutf-16besutf-16lesutf-32besutf-32letencodingRFu€RZu: €txmlcharrefreplace(s iso-8859-15sutf-8sutf-16besutf-16lesutf-32besutf-32le( RGRRHRIRRRJRKRRLtencode(R*t encodingsR^RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_encodingòs      cCs}|jƒ}t|ddƒ}|jƒ|jdidd6ƒ|jdƒ|jdƒ|jƒ|j|jƒdƒdS(NR^tasciiRFu€RZsE ( RGRRHRIRRRJRKRRL(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_unencodables     cCst|jƒ}t|ƒ}|jƒ|jdiƒ|jdƒ|jdƒ|jƒ|j|jƒt dƒdS(NRFt s ( RGRRHRItignorableWhitespaceRJRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_ignorables      cCsÃd}x¶|D]®}|jƒ}t|d|ƒ}|jƒ|jdid d 6ƒ|jd j|ƒƒ|jd j|ƒƒ|jdƒ|jƒ|j |j ƒd |j|d ƒƒq WdS(Ns iso-8859-15sutf-8sutf-16besutf-16lesutf-32besutf-32leR^RFu€RZReu; € R_(s iso-8859-15sutf-8sutf-16besutf-16lesutf-32besutf-32le( RGRRHRIRRR`RfRJRKRRL(R*RaR^RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_encoding_bytess      cCs½|jƒ}t|ƒ}|jƒ|jdtƒ|jtdfdiƒ|jddiƒ|jddƒ|jtdfdƒ|jdƒ|j ƒ|j |j ƒt dtƒdS(Ntns1RFsns1:doctudocs/(NRj(NRj( RGRRHtstartPrefixMappingR,tstartElementNSR't endElementNStendPrefixMappingRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_ns3s     cCst|jƒ}t|ƒ}|jƒ|jddidd6ƒ|jddƒ|jƒ|j|jƒt dƒdS(NRZtctbs (NRZ(NRq(NRZ( RGRRHRlR'RmRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_1463026_1Es    cCsŠ|jƒ}t|ƒ}|jƒ|jddƒ|jddiƒ|jddƒ|jdƒ|jƒ|j |j ƒt dƒdS(NtquxRZs(RsRZ(RsRZ( RGRRHRkR'RlRmRnRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_1463026_2Ps     cCs‘|jƒ}t|ƒ}|jƒ|jddƒ|jddidd6ƒ|jd dƒ|jdƒ|jƒ|j |j ƒt dƒdS( NtmyRsRZRpRqs"(squxRZ(NRq(squxRZ( RGRRHRkRlR'RmRnRKRRLRM(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_1463026_3]s     cCsutdƒ}tƒ}|jttƒ|jƒ}t|ƒ}|j|ƒ|j|ƒ|j |j ƒt dƒdS(NsbHellosMHello( RRt setFeatureR tTrueRGRtsetContentHandlertparseRRLRM(R*ttest_xmltparserRNRO((s)/usr/local/lib/python2.7/test/test_sax.pyt test_5027_1ks      cCsÇ|jƒ}t|ƒ}|jƒ|jddƒ|jd diƒidd 6}|jd d|ƒ|jdƒ|jd dƒ|jddƒ|jdƒ|jƒ|j |j ƒt d ƒdS(NRZshttp://example.com/nstg1tens$http://www.w3.org/XML/1998/namespacetlangtg2tHellosMHello(shttp://example.com/nsR~(s$http://www.w3.org/XML/1998/namespaceR€(shttp://example.com/nsR(shttp://example.com/nsR(shttp://example.com/nsR~( RGRRHRkRlRRRmRnRKRRLRM(R*RNROt lang_attr((s)/usr/local/lib/python2.7/test/test_sax.pyt test_5027_2…s       cCs3|jƒ}d„}||ƒ|j|jƒdS(NcSs*t|ƒ}|jƒ|jdiƒdS(NRF(RRHRI(toutRO((s)/usr/local/lib/python2.7/test/test_sax.pytfunc£s  (RGR#tclosed(R*RNR†((s)/usr/local/lib/python2.7/test/test_sax.pyttest_no_close_file¡s   cCs‡|jƒ}t|ƒ}|jdidd6ƒ|jdƒ|jdƒ|jdidd6ƒ|jdƒ|j|jƒdƒdS( Ntfoos1.0RZR‚tbars2.0Rqs+Hello(RGRRIRRRJRRL(R*RNRO((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_fragmentªs     (R1R2RPRSRWRXR]RbRdRgRhRoRrRtRvR}R„RˆR‹(((s)/usr/local/lib/python2.7/test/test_sax.pyRE®s"         tStringXmlgenTestcBseZeZRS((R1R2RRG(((s)/usr/local/lib/python2.7/test/test_sax.pyRŒ¹stBytesIOXmlgenTestcBseZejZRS((R1R2tiotBytesIORG(((s)/usr/local/lib/python2.7/test/test_sax.pyR¼stWriterXmlgenTestcBseZdefd„ƒYZRS(RGcBs eZejZeZd„ZRS(cCs dj|ƒS(Nt(tjoin(R*((s)/usr/local/lib/python2.7/test/test_sax.pyRLÄs(R1R2tlisttappendtwritetFalseR‡RL(((s)/usr/local/lib/python2.7/test/test_sax.pyRGÀs (R1R2R“RG(((s)/usr/local/lib/python2.7/test/test_sax.pyR¿stXMLFilterBaseTestcBseZd„ZRS(cCs”tƒ}t|ƒ}tƒ}|j|ƒ|jƒ|jdiƒ|jdƒ|jdƒ|jdƒ|j ƒ|j |j ƒt dƒdS(NRFtcontentRescontent ( RRR RyRHRIRRRfRJRKRRLRM(R*RNROtfilter((s)/usr/local/lib/python2.7/test/test_sax.pyttest_filter_basicÉs         (R1R2Rš(((s)/usr/local/lib/python2.7/test/test_sax.pyR—ÈstExpatReaderTestcBsïeZd„Zed„ƒZddd„ƒYZd„Zddd„ƒYZd„Zde fd „ƒYZ d „Z d „Z d „Z d „Zd„Zd„Zed„ƒZd„Zd„Zd„Zd„Zd„Zed„ƒZRS(cCsXtƒ}tƒ}t|ƒ}|j|ƒ|jttƒƒ|j|jƒt ƒdS(N( R RRRyRztopent TEST_XMLFILERRLt xml_test_out(R*R|RNtxmlgen((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_fileäs     cCs„tj}tjt|ƒ|jtj|ƒtƒ}tƒ}t |ƒ}|j |ƒ|j t |ƒƒ|j |jƒtƒdS(N(tsupporttTESTFN_UNICODEtshutiltcopyfileRt addCleanuptunlinkR RRRyRzRœRRLRž(R*tfnameR|RNRŸ((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_file_unicodeîs     tTestDTDHandlercBs#eZd„Zd„Zd„ZRS(cCsg|_g|_dS(N(t _notationst _entities(R*((s)/usr/local/lib/python2.7/test/test_sax.pyt__init__s cCs|jj|||fƒdS(N(RªR”(R*tnametpublicIdtsystemId((s)/usr/local/lib/python2.7/test/test_sax.pyt notationDeclscCs |jj||||fƒdS(N(R«R”(R*R­R®R¯tndata((s)/usr/local/lib/python2.7/test/test_sax.pytunparsedEntityDecls(R1R2R¬R°R²(((s)/usr/local/lib/python2.7/test/test_sax.pyR©ÿs  cCstƒ}|jƒ}|j|ƒ|jdƒ|jdƒ|jdƒ|jdƒ|jdƒ|jƒ|j|jd gƒ|j|jd gƒdS( Ns sW s]> s tGIFs;-//CompuServe//NOTATION Graphics Interchange Format 89a//ENtimgs expat.gif(R³s;-//CompuServe//NOTATION Graphics Interchange Format 89a//ENN(R´Ns expat.gifR³( R R©t setDTDHandlertfeedtcloseRRªR'R«(R*R|thandler((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_dtdhandler s           tTestEntityResolvercBseZd„ZRS(cCs tƒ}|jtdƒƒ|S(Ns (R t setByteStreamR(R*R®R¯tinpsrc((s)/usr/local/lib/python2.7/test/test_sax.pyt resolveEntitys (R1R2R½(((s)/usr/local/lib/python2.7/test/test_sax.pyRºscCs”tƒ}|j|jƒƒtƒ}|jt|ƒƒ|jdƒ|jdƒ|jdƒ|jdƒ|jƒ|j|j ƒt dƒdS(Ns s]> s&test;s( R tsetEntityResolverRºRRyRR¶R·RRLRM(R*R|RN((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_entityresolver$s       t AttrGatherercBseZd„Zd„ZRS(cCs ||_dS(N(t_attrs(R*R­R((s)/usr/local/lib/python2.7/test/test_sax.pyRI7scCs ||_dS(N(RÁ(R*R­tqnameR((s)/usr/local/lib/python2.7/test/test_sax.pyRl:s(R1R2RIRl(((s)/usr/local/lib/python2.7/test/test_sax.pyRÀ5s cCsMtƒ}|jƒ}|j|ƒ|jdƒ|jƒ|j|jƒdS(Ns(R RÀRyR¶R·R+RÁ(R*R|tgather((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_attrs_empty=s      cCsMtƒ}|jƒ}|j|ƒ|jdƒ|jƒ|j|jƒdS(Ns(R RÀRyR¶R·R0RÁ(R*R|RÃ((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_attrs_wattrGs      cCsPtdƒ}|jƒ}|j|ƒ|jdƒ|jƒ|j|jƒdS(Nis(R RÀRyR¶R·R-RÁ(R*R|RÃ((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_nsattrs_emptyQs      cCsštdƒ}|jƒ}|j|ƒ|jdtƒ|jƒ|j}|j|jƒdƒ|j|j ƒtdfgƒ|j |j ƒgkp¨|j ƒdgkƒ|jt |ƒdƒ|j |j tdfƒƒ|j|jtdfƒdƒ|j|jtdfdƒdƒ|j|jƒtdfdfgƒ|j|jƒdgƒ|j|jtdfƒdƒ|j|tdfdƒdS(Nis"Rsns:attrR.i(R RÀRyR¶R,R·RÁRRR R/R!R"R$R&R(R)R(R*R|RÃR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_nsattrs_wattr[s$     "%cCsRtƒ}tƒ}t|ƒ}|j|ƒ|jtƒ|j|jƒtƒdS(N( R RRRyRzRRRLRž(R*R|RNRŸ((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_inpsource_filenamets      cCsXtƒ}tƒ}t|ƒ}|j|ƒ|jttƒƒ|j|jƒt ƒdS(N( R RRRyRzR RRRLRž(R*R|RNRŸ((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_inpsource_sysid~s     cCs„tj}tjt|ƒ|jtj|ƒtƒ}tƒ}t |ƒ}|j |ƒ|j t |ƒƒ|j |jƒtƒdS(N(R¡R¢R£R¤RR¥R¦R RRRyRzR RRLRž(R*R§R|RNRŸ((s)/usr/local/lib/python2.7/test/test_sax.pyt"test_expat_inpsource_sysid_unicodeˆs     cCsntƒ}tƒ}t|ƒ}|j|ƒtƒ}|jttƒƒ|j|ƒ|j |j ƒt ƒdS(N( R RRRyR R»RœRRzRRLRž(R*R|RNRŸR¼((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_inpsource_stream—s      cCsmtƒ}t|ƒ}tƒ}|j|ƒ|jdƒ|jdƒ|jƒ|j|jƒtdƒdS(Nsss ( RRR RyR¶R·RRLRM(R*RNRŸR|((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_incremental¥s       cCsÀtƒ}t|ƒ}tƒ}|j|ƒ|jdƒ|jdƒtƒ}t|ƒ}|j|ƒ|jƒ|jdƒ|jdƒ|jdƒ|jƒ|j|jƒt dƒdS(Nsttextsstext( RRR RyR¶tresetR·RRLRM(R*RNRŸR|((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_incremental_reset±s              cCs•tƒ}t|ƒ}tƒ}|j|ƒ|jdƒ|jdƒ|jƒ|j|jƒdƒ|j|j ƒdƒ|j|j ƒdƒdS(Nssi( RRR RyR¶R·Rt getSystemIdR't getPublicIdt getLineNumber(R*RNRŸR|((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_locator_noinfoÈs       cCshtƒ}t|ƒ}tƒ}|j|ƒ|jtƒ|j|jƒtƒ|j|jƒdƒdS(N( RRR RyRzRRRÐRÑR'(R*RNRŸR|((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_locator_withinfoÖs     cCs”tj}tjt|ƒ|jtj|ƒtƒ}t|ƒ}t ƒ}|j |ƒ|j |ƒ|j |j ƒ|ƒ|j |jƒdƒdS(N(R¡R¢R£R¤RR¥R¦RRR RyRzRRÐRÑR'(R*R§RNRŸR|((s)/usr/local/lib/python2.7/test/test_sax.pyt#test_expat_locator_withinfo_unicodeàs      (((R1R2R trequires_unicode_filenamesR¨R©R¹RºR¿RRÀRÄRÅRÆRÇRÈRÉRÊRËRÌRÏRÓRÔRÕ(((s)/usr/local/lib/python2.7/test/test_sax.pyR›às(         tErrorReportingTestcBs6eZd„Zd„Zd„Zddd„ƒYZRS(cCs“tƒ}|jtƒƒtƒ}|jtdƒƒd}|j|ƒy|j|ƒ|jƒWn)t k rŽ}|j |j ƒ|ƒnXdS(Nss a file name( R RyRR R»Rt setSystemIdRztfailRRRÐ(R*R|tsourceR­R[((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_inpsource_location÷s    cCs9tƒ}|jtƒƒ|jt|jtdƒƒdS(Ns(R RyRRRRzR(R*R|((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_incompletes cCsŒttdd|jddƒƒƒttdd|jddƒƒƒttdd|jddƒƒƒttdd|jddƒƒƒdS(Ntmessagei(tstrRR't DummyLocator(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_sax_parse_exception_str s    RßcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs||_||_dS(N(t_linenot_colno(R*tlinenotcolno((s)/usr/local/lib/python2.7/test/test_sax.pyR¬s cCsdS(Ntpubid((R*((s)/usr/local/lib/python2.7/test/test_sax.pyRÑ scCsdS(Ntsysid((R*((s)/usr/local/lib/python2.7/test/test_sax.pyRÐ#scCs|jS(N(Rá(R*((s)/usr/local/lib/python2.7/test/test_sax.pyRÒ&scCs|jS(N(Râ(R*((s)/usr/local/lib/python2.7/test/test_sax.pytgetColumnNumber)s(R1R2R¬RÑRÐRÒRç(((s)/usr/local/lib/python2.7/test/test_sax.pyRßs     ((R1R2RÛRÜRàRß(((s)/usr/local/lib/python2.7/test/test_sax.pyR×ös  t XmlReaderTestcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs|jtiƒƒdS(N(R+R (R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_attrs_empty5scCs|jtidd6ƒƒdS(NR.R(R0R (R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_attrs_wattr8scCs|jtiiƒƒdS(N(R-R(R*((s)/usr/local/lib/python2.7/test/test_sax.pyttest_nsattrs_empty;scCsÛtidtdf6idtdf6ƒ}|j|jƒdƒ|j|jƒtdfgƒ|j|jƒdgƒ|jt|ƒdƒ|j|jtdfƒƒ|j|j ƒtdfgƒ|j|j tdfƒdƒ|j|j tdfdƒdƒ|j|j ƒtdfdfgƒ|j|j ƒdgƒ|j|j tdfƒdƒ|j|jdƒdƒ|j|jdƒtdfƒ|j|tdfdƒ|j|jtdfƒdƒdS(NR.Rsns:attrii(RR,RRR R!R"R/R$R%R&R(R)RRRR(R*R((s)/usr/local/lib/python2.7/test/test_sax.pyttest_nsattrs_wattr>s""%cCs˜ddl}|jjƒ}x3|jjƒD]"}|jdƒr+|j|=q+q+Wz/ddl}|jj}|j|j dƒWd|jj |ƒXdS(Niÿÿÿÿsxml.sxml.sax.expatreader( tsystmodulestcopyR%t startswithtxml.sax.expatreadertsaxt expatreaderRR1tupdate(R*Rít old_modulestmodnametxmltmodule((s)/usr/local/lib/python2.7/test/test_sax.pyttest_sf_1511497js   cCs?tdƒ}tƒ}ddlm}|j||j|ƒdS(Ntinvalidiÿÿÿÿ(R(RRR4RRRz(R*tsioR|R((s)/usr/local/lib/python2.7/test/test_sax.pyttest_sf_1513611xs  (R1R2RéRêRëRìRùRü(((s)/usr/local/lib/python2.7/test/test_sax.pyRè2s     , c Cs#tttttttttƒdS(N( RR3R7RŒRRR›R×Rè(((s)/usr/local/lib/python2.7/test/test_sax.pyt test_main€st__main__(BR4RRRRRt ImportErrortxml.sax.saxutilsRRRRR RñR txml.sax.handlerR txml.sax.xmlreaderR R Rt cStringIORRŽtos.pathtosR£ttest.test_supportt test_supportR¡RRtunittestRtTEST_XMLFILE_OUTRxtsupports_unicode_filenamestpathR¢R`tTESTFN_ENCODINGtAttributeErrort UnicodeErrort TypeErrorR–t skipUnlessRÖR,tTestCaseRR3R7RMRERŒRRR—RœtreadRžR›R×RèRýR1(((s)/usr/local/lib/python2.7/test/test_sax.pytsZ(  (       46ÿ  ÿ<N