%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_sax.pyo


Nac@sgddlmZmZmZmZmZmZyeWnek
rXednXddlm	Z	m
Z
mZmZm
Z
mZddlmZddlmZddlmZmZmZddlmZddlZddlZddlZddlZddljZ dd	lm!Z!m"Z"m#Z#ddl$Z$e!d
ddZ%e!d
ddZ&e'Z(ej)j(rye j*j+e j,Wn e-e.e/fk
re0Z(nXne$j1e(dZ2dZ3de$j4fdYZ5e6dZ7e8dZ9e8dZ:de$j4fdYZ;de$j4fdYZ<de$j4fdYZ=de$j4fdYZ>dZ?dfdYZ@d e@e$j4fd!YZAd"e@e$j4fd#YZBd$e@e$j4fd%YZCd&e$j4fd'YZDeEe&jFZGd(e5fd)YZHd*e$j4fd+YZId,e5fd-YZJd.ZKeLd/krceKndS(0i(tmake_parsertContentHandlertSAXExceptiontSAXReaderNotAvailabletSAXParseExceptiontsaxutilssno XML parsers available(tXMLGeneratortescapetunescapet	quoteattrt
XMLFilterBasetprepare_input_source(t
create_parser(tfeature_namespaces(tInputSourcetAttributesImpltAttributesNSImpl(tStringION(tfindfiletrun_unittesttTESTFNstest.xmltsubdirtxmltestdatastest.xml.outs"Requires unicode filenames supports%http://www.python.org/xml-ns/saxtest/tXmlTestBasecBs#eZdZdZdZRS(cCsW|jt|jd|jt|jd|jt|jd|jt|jd|jt|jd|j|jd|j|j	g|j|j
g|jt|d|j|j
d|j|jg|j|jdd|j|jddd|j|jg|j|jgdS(Ntattritattrsi(tassertRaisestKeyErrortgetValuetgetValueByQNametgetNameByQNametgetQNameByNamet__getitem__tassertEqualt	getLengthtgetNamest	getQNamestlentassertFalsethas_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|jg|jt|d|j
|jtdf|j|jg|j|jtdfd|j|jtdfdd|j|jg|j|jgdS(NRsns:attrii(RRRtns_uriRRRR R!R"R#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|jd|j|jdg|j|jdg|jt|d|j|jd|j|jdg|j|jdd|j|jddd|j|j	dg|j|j
dg|j|jdd|j|jdd|j|j
dd|j|dd|j|jdddS(NiRtvali(RR1(R!R"R#R$R%t
assertTrueR'R(R)R+R,RRRR(R-R((s)/usr/local/lib/python2.7/test/test_sax.pytverify_attrs_wattrNs(t__name__t
__module__R.R0R3(((s)/usr/local/lib/python2.7/test/test_sax.pyR+s		cCs|dkr|Sd||fS(Nu&<?xml version="1.0" encoding="%s"?>
%s(R*(tdoctencoding((s)/usr/local/lib/python2.7/test/test_sax.pytxml_unicode`scCs.|tkr|}nt||j|dS(Ntxmlcharrefreplace(tEllipsisR8tencode(R6R7t
decl_encoding((s)/usr/local/lib/python2.7/test/test_sax.pyt	xml_byteses	cCsV|tkr|}ntjtdd|dd}|jt||WdQXdS(NtwR7terrorsR9(R:tiotopenRtwriteR8(R6R7R<tf((s)/usr/local/lib/python2.7/test/test_sax.pyt
make_xml_filejs	!t	ParseTestcBsVeZejdZdZdZdZdZdZ	dZ
dZRS(sB<money value="$\xa3\u20ac\U0001017b">$\xa3\u20ac\U0001017b</money>cCstjtdS(N(tsupporttunlinkR(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttearDownuscCsUddlm}t}||t|d|j|jt|jddS(Ni(tparsesutf-8(txml.saxRIRRR!tgetvalueR=tdata(R-RCRItresult((s)/usr/local/lib/python2.7/test/test_sax.pytcheck_parsexs	cCsd	}x|D]}|jtjt|j|t|j||jttjtd}|j|WdQX|jtjt|j|dt|j|d|jttjtd}|j|WdQXq
W|jtjt|jddt|jdd|jttjtd}|j|WdQX|jtjt|jddt|jdd|jttjtd}|j|WdQX|jtjt|jdt|jd|jttjtd}|j|WdQX|j	t
*|jtjt|jddWdQXt|jdd|j	t
|jtWdQXtjtd*}|j	t
|j|WdQXWdQXdS(
Nsus-asciisutf-8sutf-16sutf-16lesutf-16betrbs	utf-8-sigs
iso-8859-1(sus-asciisutf-8sutf-16sutf-16lesutf-16be(RNR@tBytesIOR=RLRDRRAR*RR(R-t	encodingsR7RC((s)/usr/local/lib/python2.7/test/test_sax.pyttest_parse_bytes~sF
"
%
%
%
"
+cCsbt|jddtjtd7}t}|j||jd|j	|WdQXdS(Ns
iso-8859-1RO(
RDRLR*R@RARRt
setByteStreamtsetEncodingRN(R-RCtinput((s)/usr/local/lib/python2.7/test/test_sax.pyttest_parse_InputSources	

c
stidd6fd}tjtd|Ot|jdd|jt|j	t
WdQX|jdjWdQXdS(Ntfileobjcs|}|d<|S(NRW((targsRW(tbuiltin_opent	non_local(s)/usr/local/lib/python2.7/test/test_sax.pyt	mock_opens
RAs
iso-8859-1(
RAR*RFt	swap_attrRRDRLRRRNRR2tclosed(R-R[((RYRZs)/usr/local/lib/python2.7/test/test_sax.pyttest_parse_close_sources
cCsUddlm}t}||t|d|j|jt|jddS(Ni(tparseStringsutf-8(RJR_RRR!RKR=RL(R-tsR_RM((s)/usr/local/lib/python2.7/test/test_sax.pytcheck_parseStrings	c	Csd}xC|D];}|jt|j||jt|j|dq
W|jt|jdd|jt|jdd|jt|jd|jt!|jt|jddWdQXdS(	Nsus-asciisutf-8sutf-16sutf-16lesutf-16bes	utf-8-sigs
iso-8859-1(sus-asciisutf-8sutf-16sutf-16lesutf-16be(RaR=RLR*RR(R-RQR7((s)/usr/local/lib/python2.7/test/test_sax.pyttest_parseString_bytess
 (R4R5RFtuRLRHRNRRRVR^RaRb(((s)/usr/local/lib/python2.7/test/test_sax.pyREqs			*				tMakeParserTestcBseZdZRS(cCsddlm}|}ddlm}|}ddlm}|}ddlm}|}ddlm}|}ddlm}|}dS(Ni(R(RJR(R-Rtp((s)/usr/local/lib/python2.7/test/test_sax.pyttest_make_parser2s					(R4R5Rf(((s)/usr/local/lib/python2.7/test/test_sax.pyRdstSaxutilsTestcBsteZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
RS(cCs|jtdddS(NsDonald Duck & CosDonald Duck &amp; Co(R!R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_escape_basicscCs|jtdddS(Ns<Donald Duck & Co>s&lt;Donald Duck &amp; Co&gt;(R!R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_escape_allscCs$|jtdidd6ddS(NsHei på degs&aring;såsHei p&aring; deg(R!R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_escape_extrascCs|jtdddS(NsDonald Duck &amp; CosDonald Duck & Co(R!R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_unescape_basicscCs|jtdddS(Ns&lt;Donald Duck &amp; Co&gt;s<Donald Duck & Co>(R!R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_unescape_allscCs$|jtdidd6ddS(NsHei på degs&aring;såsHei p&aring; deg(R!R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_unescape_extrascCs$|jtdidd6ddS(Ns	&amp;foo;tsplats&foo;(R!R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_unescape_amp_extra	scCs|jtdddS(NsDonald Duck & Cos"Donald Duck &amp; Co"(R!R	(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_quoteattr_basic
scCs|jtdddS(NsIncludes "double" quotess'Includes "double" quotes'(R!R	(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_single_quoteattrscCs|jtdddS(NsIncludes 'single' quotess"Includes 'single' quotes"(R!R	(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_double_quoteattrscCs|jtdddS(Ns%Includes 'single' and "double" quotess1"Includes 'single' and &quot;double&quot; quotes"(R!R	(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_single_double_quoteattrscCstdg}dS(Nsxml.parsers.no_such_parser(R(R-Re((s)/usr/local/lib/python2.7/test/test_sax.pyttest_make_parsers(R4R5RhRiRjRkRlRmRoRpRqRrRsRt(((s)/usr/local/lib/python2.7/test/test_sax.pyRgs											tPrepareInputSourceTestcBsPeZdZdZdZdZdZdZdZdZ	RS(cCs8tj|_t|jd}|jdWdQXdS(NR>sThis was read from a file.(RFRtfileRARB(R-ttmp((s)/usr/local/lib/python2.7/test/test_sax.pytsetUp&scCstj|jdS(N(RFRGRv(R-((s)/usr/local/lib/python2.7/test/test_sax.pyRH+scCs
tjdS(NsThis is a byte stream.(R@RP(R-((s)/usr/local/lib/python2.7/test/test_sax.pytmake_byte_stream.scCs1|j||j|j||jdS(N(tassertIsNotNoneR!treadtclose(R-tstreamtcontent((s)/usr/local/lib/python2.7/test/test_sax.pytcheckContent1s
cCs[t|j}|j|jt|}|j|j|j|jddS(NsThis is a byte stream.(	RRvRSRyRtassertIsNonetgetCharacterStreamRt
getByteStream(R-tsrctprep((s)/usr/local/lib/python2.7/test/test_sax.pyttest_byte_stream7scCsHt|j}t|}|j|j|j|jddS(NsThis was read from a file.(RRvRRRRR(R-RR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_system_idAs
cCs<t|j}|j|j|j|jddS(NsThis was read from a file.(RRvRRRR(R-R((s)/usr/local/lib/python2.7/test/test_sax.pyttest_stringJscCs?t|j}|j|j|j|jddS(NsThis is a byte stream.(RRyRRRR(R-R((s)/usr/local/lib/python2.7/test/test_sax.pyttest_binary_fileQs(
R4R5RxRHRyRRRRR(((s)/usr/local/lib/python2.7/test/test_sax.pyRu$s					
			s,<?xml version="1.0" encoding="iso-8859-1"?>
t
XmlgenTestcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZRS(cCsg|j}t|}|j|jdi|jd|j|j|jtddS(NR6s<doc></doc>(	tioclassRt
startDocumenttstartElementt
endElementtendDocumentR!RKtstart(R-RMtgen((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_basic_s


cCst|j}t|}|j|jdi|jd|jd|j|j|jt	ddS(NR6thuheis<doc>huhei</doc>(
RRRRt
charactersRRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_contentis



cCsw|j}t|}|j|jdd|jdi|jd|j|j|jt	ddS(NttestRLR6s<?test data?><doc></doc>(
RRRtprocessingInstructionRRRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_pius


cCst|j}t|}|j|jdi|jd|jd|j|j|jt	ddS(NR6s<huhei&s<doc>&lt;huhei&amp;</doc>(
RRRRRRRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_content_escapes



cCs|j}t|}|j|jdidd6|jdidd6|jd|jdidd6|jd|jdidd6|jd|jd|j|j|jtddS(	NR6t"tatet's'"s

	sK<doc a='"'><e a="'"></e><e a="'&quot;"></e><e a="&#10;&#13;&#9;"></e></doc>(	RRRRRRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_attr_escapes





cCsd
}x|D]}|j}t|d|}|j|jdid	d
6|jd	|jd|j|j|jd|j	|dq
WdS(Nsiso-8859-15sutf-8sutf-16besutf-16lesutf-32besutf-32leR7R6u€Ru:<?xml version="1.0" encoding="%s"?>
<doc a="€">€</doc>R9(siso-8859-15sutf-8sutf-16besutf-16lesutf-32besutf-32le(
RRRRRRRR!RKR;(R-RQR7RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_encodings




cCs}|j}t|dd}|j|jdidd6|jd|jd|j|j|jddS(NR7tasciiR6u€RsE<?xml version="1.0" encoding="ascii"?>
<doc a="&#8364;">&#8364;</doc>(	RRRRRRRR!RK(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_unencodables



cCst|j}t|}|j|jdi|jd|jd|j|j|jt	ddS(NR6t s<doc> </doc>(
RRRRtignorableWhitespaceRRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_ignorables



cCsd}x|D]}|j}t|d|}|j|jdid	d
6|jd	j||jdj||jd|j|j	|j
d|j|d
q
WdS(Nsiso-8859-15sutf-8sutf-16besutf-16lesutf-32besutf-32leR7R6u€RRu;<?xml version="1.0" encoding="%s"?>
<doc a="€">€ </doc>R9(siso-8859-15sutf-8sutf-16besutf-16lesutf-32besutf-32le(RRRRRR;RRRR!RK(R-RQR7RMR((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
|jtdtdS(Ntns1R6sns1:doctudocs/<ns1:doc xmlns:ns1="%s"><udoc></udoc></ns1:doc>(NR(NR(
RRRtstartPrefixMappingR/tstartElementNSR*tendElementNStendPrefixMappingRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_nss


cCst|j}t|}|j|jddidd6|jdd|j|j|jt	ddS(NRtctbs
<a b="c"></a>(NR(NR(NR(
RRRRR*RRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_1463026_1s

cCs|j}t|}|j|jdd|jddi|jdd|jd|j|j	|j
tddS(NtquxRs<a xmlns="qux"></a>(RR(RR(RRRRR*RRRRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_1463026_2s


cCs|j}t|}|j|jdd|jddidd6|jd	d|jd|j|j	|j
tddS(
NtmyRRRRs"<my:a xmlns:my="qux" b="c"></my:a>(RR(NR(RR(RRRRRR*RRRR!RKR(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_1463026_3
s


cCsutd}t}|jtt|j}t|}|j||j||j	|j
tddS(Nsb<?xml version="1.0"?><a:g1 xmlns:a="http://example.com/ns"><a:g2 xml:lang="en">Hello</a:g2></a:g1>sM<a:g1 xmlns:a="http://example.com/ns"><a:g2 xml:lang="en">Hello</a:g2></a:g1>(RRt
setFeatureR
tTrueRRtsetContentHandlerRIR!RKR(R-ttest_xmltparserRMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_5027_1s		

cCs|j}t|}|j|jdd|jd
diidd6}|jdd||jd|jd
d|jdd|jd|j|j	|j
td	dS(NRshttp://example.com/nstg1tens$http://www.w3.org/XML/1998/namespacetlangtg2tHellosM<a:g1 xmlns:a="http://example.com/ns"><a:g2 xml:lang="en">Hello</a:g2></a:g1>(shttp://example.com/nsR(s$http://www.w3.org/XML/1998/namespaceR(shttp://example.com/nsR(shttp://example.com/nsR(shttp://example.com/nsR(RRRRRRRRRR!RKR(R-RMRt	lang_attr((s)/usr/local/lib/python2.7/test/test_sax.pyttest_5027_25s




cCs3|j}d}|||j|jdS(NcSs*t|}|j|jdidS(NR6(RRR(toutR((s)/usr/local/lib/python2.7/test/test_sax.pytfuncSs
(RR&R](R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_no_close_fileQs	
cCs|j}t|}|jdidd6|jd|jd|jdidd6|jd|j|jddS(	Ntfoos1.0RRtbars2.0Rs+<foo a="1.0">Hello</foo><bar b="2.0"></bar>(RRRRRR!RK(R-RMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_xmlgen_fragmentZs


(R4R5RRRRRRRRRRRRRRRRR(((s)/usr/local/lib/python2.7/test/test_sax.pyR^s"	
			
								
					tStringXmlgenTestcBseZeZRS((R4R5RR(((s)/usr/local/lib/python2.7/test/test_sax.pyRistBytesIOXmlgenTestcBseZejZRS((R4R5R@RPR(((s)/usr/local/lib/python2.7/test/test_sax.pyRlstWriterXmlgenTestcBseZdefdYZRS(RcBs eZejZeZdZRS(cCs
dj|S(Nt(tjoin(R-((s)/usr/local/lib/python2.7/test/test_sax.pyRKts(R4R5tlisttappendRBtFalseR]RK(((s)/usr/local/lib/python2.7/test/test_sax.pyRps	(R4R5RR(((s)/usr/local/lib/python2.7/test/test_sax.pyRostXMLFilterBaseTestcBseZdZRS(cCst}t|}t}|j||j|jdi|jd|jd|jd|j	|j
|jtddS(NR6R~Rs<doc>content </doc>(
RRR
RRRRRRRR!RKR(R-RMRtfilter((s)/usr/local/lib/python2.7/test/test_sax.pyttest_filter_basicys		





(R4R5R(((s)/usr/local/lib/python2.7/test/test_sax.pyRxstExpatReaderTestcBseZdZedZdddYZdZdddYZdZde	fd	YZ
d
ZdZdZ
d
ZdZdZedZdZdZdZdZdZedZRS(cCsXt}t}t|}|j||jtt|j|jt	dS(N(
RRRRRIRAtTEST_XMLFILER!RKtxml_test_out(R-RRMtxmlgen((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_binary_files		
cCstj}tjt||jtj|t}t}t	|}|j
||jt||j
|jtdS(N(RFtTESTFN_UNICODEtshutiltcopyfileRt
addCleanupRGRRRRRIRAR!RKR(R-tfnameRRMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_file_unicodes			
tTestDTDHandlercBs#eZdZdZdZRS(cCsg|_g|_dS(N(t
_notationst	_entities(R-((s)/usr/local/lib/python2.7/test/test_sax.pyt__init__s	cCs|jj|||fdS(N(RR(R-tnametpublicIdtsystemId((s)/usr/local/lib/python2.7/test/test_sax.pytnotationDeclscCs |jj||||fdS(N(RR(R-RRRtndata((s)/usr/local/lib/python2.7/test/test_sax.pytunparsedEntityDecls(R4R5RRR(((s)/usr/local/lib/python2.7/test/test_sax.pyRs		cCst}|j}|j||jd|jd|jd|jd|jd|j|j|jd
g|j|jdgdS(Ns<!DOCTYPE doc [
s-  <!ENTITY img SYSTEM "expat.gif" NDATA GIF>
sW  <!NOTATION GIF PUBLIC "-//CompuServe//NOTATION Graphics Interchange Format 89a//EN">
s]>
s<doc></doc>tGIFs;-//CompuServe//NOTATION Graphics Interchange Format 89a//ENtimgs	expat.gif(Rs;-//CompuServe//NOTATION Graphics Interchange Format 89a//ENN(RNs	expat.gifR(	RRt
setDTDHandlertfeedR|R!RR*R(R-Rthandler((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_dtdhandlers	







tTestEntityResolvercBseZdZRS(cCs t}|jtd|S(Ns	<entity/>(RRSR(R-RRtinpsrc((s)/usr/local/lib/python2.7/test/test_sax.pyt
resolveEntitys	(R4R5R(((s)/usr/local/lib/python2.7/test/test_sax.pyRscCst}|j|jt}|jt||jd|jd|jd|jd|j|j|j	t
ddS(Ns<!DOCTYPE doc [
s#  <!ENTITY test SYSTEM "whatever">
s]>
s<doc>&test;</doc>s<doc><entity></entity></doc>(RtsetEntityResolverRRRRRR|R!RKR(R-RRM((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_entityresolvers		




tAttrGatherercBseZdZdZRS(cCs
||_dS(N(t_attrs(R-RR((s)/usr/local/lib/python2.7/test/test_sax.pyRscCs
||_dS(N(R(R-RtqnameR((s)/usr/local/lib/python2.7/test/test_sax.pyRs(R4R5RR(((s)/usr/local/lib/python2.7/test/test_sax.pyRs	cCsMt}|j}|j||jd|j|j|jdS(Ns<doc/>(RRRRR|R.R(R-Rtgather((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_attrs_emptys	


cCsMt}|j}|j||jd|j|j|jdS(Ns<doc attr='val'/>(RRRRR|R3R(R-RR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_attrs_wattrs	


cCsPtd}|j}|j||jd|j|j|jdS(Nis<doc/>(RRRRR|R0R(R-RR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_nsattrs_emptys


cCstd}|j}|j||jdt|j|j}|j|jd|j|j	tdfg|j
|jgkp|jdgk|jt|d|j
|j
tdf|j|jtdfd|j|jtdfdd|j|jtdfdfg|j|jdg|j|jtdfd|j|tdfddS(Nis"<doc xmlns:ns='%s' ns:attr='val'/>Rsns:attrR1i(RRRRR/R|RR!R"R#R2R$R%R'R)R+R,R(R-RRR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_nsattrs_wattrs$

	"%cCsRt}t}t|}|j||jt|j|jtdS(N(	RRRRRIRR!RKR(R-RRMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_inpsource_filename$s		

cCsXt}t}t|}|j||jtt|j|jt	dS(N(
RRRRRIRRR!RKR(R-RRMR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_inpsource_sysid.s		
cCstj}tjt||jtj|t}t}t	|}|j
||jt||j
|jtdS(N(RFRRRRRRGRRRRRIRR!RKR(R-RRRMR((s)/usr/local/lib/python2.7/test/test_sax.pyt"test_expat_inpsource_sysid_unicode8s			
cCsnt}t}t|}|j|t}|jtt|j||j	|j
tdS(N(RRRRRRSRARRIR!RKR(R-RRMRR((s)/usr/local/lib/python2.7/test/test_sax.pyt test_expat_inpsource_byte_streamGs		
	
cCsmt}t|}t}|j||jd|jd|j|j|jtddS(Ns<doc>s</doc>s<doc></doc>(	RRRRRR|R!RKR(R-RMRR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_incrementalUs		



cCst}t|}t}|j||jd|jdt}t|}|j||j|jd|jd|jd|j|j|jt	ddS(Ns<doc>ttexts</doc>s<doc>text</doc>(
RRRRRtresetR|R!RKR(R-RMRR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_incremental_resetas		


	





cCst}t|}t}|j||jd|jd|j|j|jd|j|j	d|j|j
ddS(Ns<doc>s</doc>i(RRRRRR|R!tgetSystemIdR*tgetPublicIdt
getLineNumber(R-RMRR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_locator_noinfoxs		



cCsht}t|}t}|j||jt|j|jt|j|jddS(N(
RRRRRIRR!RRR*(R-RMRR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_locator_withinfos		

cCstj}tjt||jtj|t}t|}t	}|j
||j||j|j
||j|jddS(N(RFRRRRRRGRRRRRIR!RRR*(R-RRMRR((s)/usr/local/lib/python2.7/test/test_sax.pyt#test_expat_locator_withinfo_unicodes			

(((R4R5Rtrequires_unicode_filenamesRRRRRRRRRRRRRRRRRRRR(((s)/usr/local/lib/python2.7/test/test_sax.pyRs(	
			
	
	
		
	
					
tErrorReportingTestcBs6eZdZdZdZdddYZRS(cCst}|jtt}|jtdd}|j|y|j||jWn)t	k
r}|j
|j|nXdS(Ns<foo bar foobar>sa file name(RRRRRSRtsetSystemIdRItfailRR!R(R-RtsourceRR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_inpsource_locations		

cCset}|jt|jt|jtd|j|jd|j|j	ddS(Ns<foo>ii(
RRRRRRIRR!tgetColumnNumberR(R-R((s)/usr/local/lib/python2.7/test/test_sax.pyttest_expat_incompletes
	cCsttdd|jddttdd|jddttdd|jddttdd|jdddS(Ntmessagei(tstrRR*tDummyLocator(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_sax_parse_exception_strsRcBs5eZdZdZdZdZdZRS(cCs||_||_dS(N(t_linenot_colno(R-tlinenotcolno((s)/usr/local/lib/python2.7/test/test_sax.pyRs	cCsdS(Ntpubid((R-((s)/usr/local/lib/python2.7/test/test_sax.pyRscCsdS(Ntsysid((R-((s)/usr/local/lib/python2.7/test/test_sax.pyRscCs|jS(N(R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyRscCs|jS(N(R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyR
s(R4R5RRRRR
(((s)/usr/local/lib/python2.7/test/test_sax.pyRs
				((R4R5RRRR(((s)/usr/local/lib/python2.7/test/test_sax.pyRs	
		t
XmlReaderTestcBs>eZdZdZdZdZdZdZRS(cCs|jtidS(N(R.R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_attrs_emptyscCs|jtidd6dS(NR1R(R3R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_attrs_wattrscCs|jtiidS(N(R0R(R-((s)/usr/local/lib/python2.7/test/test_sax.pyttest_nsattrs_emptyscCstidtdf6idtdf6}|j|jd|j|jtdfg|j|jdg|jt|d|j|jtdf|j|j	tdfg|j|j
tdfd|j|j
tdfdd|j|jtdfdfg|j|jdg|j|j
tdfd|j|jdd|j|jdtdf|j|tdfd|j|jtdfddS(NR1Rsns:attrii(RR/R!R"R#R$R%R2R'R(R)R+R,RRRR(R-R((s)/usr/local/lib/python2.7/test/test_sax.pyttest_nsattrs_wattrs""%cCsddl}|jj}x3|jjD]"}|jdr+|j|=q+q+Wz/ddl}|jj}|j|j	dWd|jj
|XdS(Nisxml.sxml.sax.expatreader(tsystmodulestcopyR(t
startswithtxml.sax.expatreadertsaxtexpatreaderR!R4tupdate(R-Rtold_modulestmodnametxmltmodule((s)/usr/local/lib/python2.7/test/test_sax.pyttest_sf_1511497scCs?td}t}ddlm}|j||j|dS(Ntinvalidi(R(RRRJRRRI(R-tsioRR((s)/usr/local/lib/python2.7/test/test_sax.pyttest_sf_1513611*s	(R4R5RRRRR*R-(((s)/usr/local/lib/python2.7/test/test_sax.pyRs				,	cCs)tttttttttt	t

dS(N(RRdRERgRuRRRRRR(((s)/usr/local/lib/python2.7/test/test_sax.pyt	test_main2st__main__(MRJRRRRRRtImportErrortxml.sax.saxutilsRRRR	R
RR"Rtxml.sax.handlerR
txml.sax.xmlreaderRRRt	cStringIORR@tgctos.pathtosRttest.test_supportttest_supportRFRRRtunittestRtTEST_XMLFILE_OUTRtsupports_unicode_filenamestpathRR;tTESTFN_ENCODINGtAttributeErrortUnicodeErrort	TypeErrorRt
skipUnlessRR/tTestCaseRR*R8R:R=RDRERdRgRuRRRRRRRAR{RRRRR.R4(((s)/usr/local/lib/python2.7/test/test_sax.pyt<module>sf.
.

	5f48	>N	

Zerion Mini Shell 1.0