%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_pyexpat.pyo

ó
Nêáac@s–ddlZddlZddlZddlmZddlmZddlmZm	Z	dej
fd„ƒYZdZdej
fd	„ƒYZ
d
ej
fd„ƒYZdej
fd
„ƒYZdej
fd„ƒYZdej
fd„ƒYZdej
fd„ƒYZdej
fd„ƒYZdej
fd„ƒYZdej
fd„ƒYZdej
fd„ƒYZd„Zedkr’eƒndS(iÿÿÿÿN(texpat(ttest_support(tsortdicttrun_unittesttSetAttributeTestcBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCstjddƒ|_dS(Ntnamespace_separatort!(RtParserCreatetparser(tself((s-/usr/local/lib/python2.7/test/test_pyexpat.pytsetUpscCsS|j|jjtƒx6dD].}||j_|j|jjt|ƒƒqWdS(Niii(iiii(tassertIsRtbuffer_texttFalsetbool(R	tx((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_buffer_texts
cCsS|j|jjtƒx6dD].}||j_|j|jjt|ƒƒqWdS(Niii(iiii(RRtnamespace_prefixesR
R(R	R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_namespace_prefixess
cCsV|j|jjtjƒx6dD].}||j_|j|jjt|ƒƒq WdS(Niii(iiii(RRtreturns_unicodeRthave_unicodeR(R	R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_returns_unicodes
cCsS|j|jjtƒx6dD].}||j_|j|jjt|ƒƒqWdS(Niii(iiii(RRtordered_attributesR
R(R	R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_ordered_attributes#s
cCsS|j|jjtƒx6dD].}||j_|j|jjt|ƒƒqWdS(Niii(iiii(RRtspecified_attributesR
R(R	R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_specified_attributes)s
cCsF|jtƒd|j_WdQX|jtƒ|jjWdQXdS(Ni(tassertRaisestAttributeErrorRtfoo(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_invalid_attributes/s(	t__name__t
__module__R
RRRRRR(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR
s						sn<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<?xml-stylesheet href="stylesheet.css"?>
<!-- comment data -->
<!DOCTYPE quotations SYSTEM "quotations.dtd" [
<!ELEMENT root ANY>
<!NOTATION notation SYSTEM "notation.jpeg">
<!ENTITY acirc "&#226;">
<!ENTITY external_entity SYSTEM "entity.file">
<!ENTITY unparsed_entity SYSTEM "entity.file" NDATA notation>
%unparsed_entity;
]>

<root attr1="value1" attr2="value2&#8000;">
<myns:subelement xmlns:myns="http://www.python.org/namespace">
     Contents of subelements
</myns:subelement>
<sub2><![CDATA[contents of CDATA section]]></sub2>
&external_entity;
</root>
t	ParseTestcBsoeZddd„ƒYZdddddddd	d
ddd
ddgZd„Zd„Zd„Zd„ZRS(t	OutputtercBs˜eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„ZRS(cCs
g|_dS(N(tout(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyt__init__PscCs,|jjdt|ƒdt|ƒƒdS(NsStart element: t (R"tappendtreprR(R	tnametattrs((s-/usr/local/lib/python2.7/test/test_pyexpat.pytStartElementHandlerSscCs|jjdt|ƒƒdS(Ns
End element: (R"R%R&(R	R'((s-/usr/local/lib/python2.7/test/test_pyexpat.pytEndElementHandlerWscCs3|jƒ}|r/|jjdt|ƒƒndS(NsCharacter data: (tstripR"R%R&(R	tdata((s-/usr/local/lib/python2.7/test/test_pyexpat.pytCharacterDataHandlerZscCs,|jjdt|ƒdt|ƒƒdS(NsPI: R$(R"R%R&(R	ttargetR,((s-/usr/local/lib/python2.7/test/test_pyexpat.pytProcessingInstructionHandler_scCs,|jjdt|ƒdt|ƒƒdS(Ns	NS decl: R$(R"R%R&(R	tprefixturi((s-/usr/local/lib/python2.7/test/test_pyexpat.pytStartNamespaceDeclHandlerbscCs|jjdt|ƒƒdS(NsEnd of NS decl: (R"R%R&(R	R0((s-/usr/local/lib/python2.7/test/test_pyexpat.pytEndNamespaceDeclHandlerescCs|jjdƒdS(NsStart of CDATA section(R"R%(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pytStartCdataSectionHandlerhscCs|jjdƒdS(NsEnd of CDATA section(R"R%(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pytEndCdataSectionHandlerkscCs|jjdt|ƒƒdS(Ns	Comment: (R"R%R&(R	ttext((s-/usr/local/lib/python2.7/test/test_pyexpat.pytCommentHandlernscGs-|\}}}}|jjd|fƒdS(NsNotation declared: %s(R"R%(R	targsR'tbasetsysidtpubid((s-/usr/local/lib/python2.7/test/test_pyexpat.pytNotationDeclHandlerqscGs0|\}}}}}|jjd|fƒdS(NsUnparsed entity decl: %s(R"R%(R	R8t
entityNameR9tsystemIdtpublicIdtnotationName((s-/usr/local/lib/python2.7/test/test_pyexpat.pytUnparsedEntityDeclHandleruscCs|jjdƒdS(NsNot standalonei(R"R%(R	tuserData((s-/usr/local/lib/python2.7/test/test_pyexpat.pytNotStandaloneHandleryscGs1|\}}}}|jjd|dfƒdS(NsExternal entity ref: %si(R"R%(R	R8tcontextR9tsysIdtpubId((s-/usr/local/lib/python2.7/test/test_pyexpat.pytExternalEntityRefHandler}scCsdS(N((R	RB((s-/usr/local/lib/python2.7/test/test_pyexpat.pytDefaultHandler‚scCsdS(N((R	RB((s-/usr/local/lib/python2.7/test/test_pyexpat.pytDefaultHandlerExpand…s(RRR#R)R*R-R/R2R3R4R5R7R<RARCRGRHRI(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR!Os 															R)R*R-R/RAR<R2R3R7R4R5RHRIRGcCsÅ|jƒ}tjddƒ}x*|jD]}t||t||ƒƒq(Wd|_|jtdƒ|j	}|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|d	d
ƒ|j
|ddƒ|j
|d
dƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|dd ƒ|j
|d!d"ƒ|j
|d#d$ƒdS(%NRRiis,PI: 'xml-stylesheet' 'href="stylesheet.css"'sComment: ' comment data 'is<Notation declared: ('notation', None, 'notation.jpeg', None)isPUnparsed entity decl: ('unparsed_entity', None, 'entity.file', None, 'notation')isHStart element: 'root' {'attr1': 'value1', 'attr2': 'value2\xe1\xbd\x80'}is1NS decl: 'myns' 'http://www.python.org/namespace'is>Start element: 'http://www.python.org/namespace!subelement' {}is)Character data: 'Contents of subelements'is9End element: 'http://www.python.org/namespace!subelement'i	sEnd of NS decl: 'myns'i
sStart element: 'sub2' {}isStart of CDATA sectionis+Character data: 'contents of CDATA section'i
sEnd of CDATA sectionisEnd element: 'sub2'is0External entity ref: (None, 'entity.file', None)isEnd element: 'root'(R!RRt
handler_namestsetattrtgetattrRtParseR,R"tassertEqual(R	R"RR'top((s-/usr/local/lib/python2.7/test/test_pyexpat.pyt	test_utf8”s0		cCsÅ|jƒ}tjddƒ}d|_x*|jD]}t||t||ƒƒq1W|jtdƒ|j	}|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|d	d
ƒ|j
|ddƒ|j
|d
dƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|dd ƒ|j
|d!d"ƒ|j
|d#d$ƒdS(%NRRiis.PI: u'xml-stylesheet' u'href="stylesheet.css"'sComment: u' comment data 'is>Notation declared: (u'notation', None, u'notation.jpeg', None)isSUnparsed entity decl: (u'unparsed_entity', None, u'entity.file', None, u'notation')isGStart element: u'root' {u'attr1': u'value1', u'attr2': u'value2\u1f40'}is3NS decl: u'myns' u'http://www.python.org/namespace'is?Start element: u'http://www.python.org/namespace!subelement' {}is*Character data: u'Contents of subelements'is:End element: u'http://www.python.org/namespace!subelement'i	sEnd of NS decl: u'myns'i
sStart element: u'sub2' {}isStart of CDATA sectionis,Character data: u'contents of CDATA section'i
sEnd of CDATA sectionisEnd element: u'sub2'is1External entity ref: (None, u'entity.file', None)isEnd element: u'root'(R!RRRRJRKRLRMR,R"RN(R	R"RR'RO((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_unicode±s0		cCs4|jƒ}tjddƒ}d|_x*|jD]}t||t||ƒƒq1Wtjtƒ}|j	|ƒ|j
}|j|ddƒ|j|ddƒ|j|ddƒ|j|d	d
ƒ|j|ddƒ|j|d
dƒ|j|ddƒ|j|ddƒ|j|ddƒ|j|ddƒ|j|ddƒ|j|ddƒ|j|ddƒ|j|ddƒ|j|dd ƒ|j|d!d"ƒ|j|d#d$ƒtt
jd%ƒ}z=|jƒtjƒ}|jtƒ|j	|ƒWdQXWdt
jt
jƒXdS(&NRRiis.PI: u'xml-stylesheet' u'href="stylesheet.css"'sComment: u' comment data 'is>Notation declared: (u'notation', None, u'notation.jpeg', None)isSUnparsed entity decl: (u'unparsed_entity', None, u'entity.file', None, u'notation')isGStart element: u'root' {u'attr1': u'value1', u'attr2': u'value2\u1f40'}is3NS decl: u'myns' u'http://www.python.org/namespace'is?Start element: u'http://www.python.org/namespace!subelement' {}is*Character data: u'Contents of subelements'is:End element: u'http://www.python.org/namespace!subelement'i	sEnd of NS decl: u'myns'i
sStart element: u'sub2' {}isStart of CDATA sectionis,Character data: u'contents of CDATA section'i
sEnd of CDATA sectionisEnd element: u'sub2'is1External entity ref: (None, u'entity.file', None)isEnd element: u'root'twb(R!RRRRJRKRLtStringIOR,t	ParseFileR"RNtopenRtTESTFNtcloseRt
ValueErrortunlink(R	R"RR'tfileROtfp((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_parse_fileÎs@	
	
cCsytjƒ}tjtƒ}|j|ƒ|jtjƒ}|j|ƒWdQX|jtj|j	j
ƒtjjƒdS(N(
RRRSR,RTRterrorRNtErrorStringt	exceptiontcodeterrorstXML_ERROR_FINISHED(R	RRZtcm((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_parse_againös
((RRR!RJRPRQR\Rd(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR Ns:				(tNamespaceSeparatorTestcBs#eZd„Zd„Zd„ZRS(cCs.tjƒtjddƒtjddƒdS(NRR$(RRtNone(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyt
test_legals
cCs˜ytjddƒ|jƒWn)tk
rI}|jt|ƒdƒnXytjddƒ|jƒWn)tk
r“}|jt|ƒdƒnXdS(NRi*s9ParserCreate() argument 2 must be string or None, not intstoo longsCnamespace_separator must be at most one character, omitted, or None(RRtfailt	TypeErrorRNtstrRX(R	te((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_illegal
scCstjddƒdS(NRt(RR(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_zero_lengths	(RRRgRlRn(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRes		t
InterningTestcBseZd„ZRS(cs‹tjƒ}g‰‡fd†}||_||_|jddƒˆd}|jtˆƒdƒx!ˆD]}|j||kƒqjWdS(Ncsˆj|ƒdS(N(R%(R'R8(tL(s-/usr/local/lib/python2.7/test/test_pyexpat.pyt	collector*ss<e> <e/> <e></e> </e>iii(RRR)R*RMRNtlent
assertTrue(R	tpRqttagtentry((Rps-/usr/local/lib/python2.7/test/test_pyexpat.pyttest&s		

(RRRw(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRo%stBufferTextTestcBs›eZd„Zd„Zd„Zd„Zd„Zd„Zgd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„ZRS(cCs7g|_tjƒ|_d|j_|j|j_dS(Ni(tstuffRRRRR-(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR
7s	c	Cs3|j|j|d||jtt|ƒfƒdS(Ns%s
stuff    = %r
expected = %r(RNRytmaptunicode(R	texpectedtlabel((s-/usr/local/lib/python2.7/test/test_pyexpat.pytcheck=scCs|jj|ƒdS(N(RyR%(R	R6((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR-BscCs]|jjd|ƒ|jdƒ}|dkr>d|j_n|dkrYd|j_ndS(Ns<%s>sbuffer-texttyesitnoi(RyR%tgetRR(R	R'R(tbt((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR)EscCs|jjd|ƒdS(Ns</%s>(RyR%(R	R'((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR*MscCs|jjd|ƒdS(Ns	<!--%s-->(RyR%(R	R,((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR7PscCs1x*|D]"}t|j|t||ƒƒqWdS(N(RKRRL(R	thandlersR'((s-/usr/local/lib/python2.7/test/test_pyexpat.pytsetHandlersSs
cCs tjƒ}|j|jƒdS(N(RRtassertFalseR(R	R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_default_to_disabledWscCsC|j|jjƒ|jjddƒ|j|jdgdƒdS(Ns<a>1<b/>2<c/>3</a>it123s$buffered text not properly collapsed(RsRRRMRNRy(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_buffering_enabled[sc
CsU|jdgƒ|jjddƒ|j|jdddddd	d
dgdƒdS(
NR)s9<a>1<b buffer-text='no'/>2
3<c buffer-text='yes'/>4
5</a>is<a>t1s<b>t2s
t3s<c>s4
5s*buffering control not reacting as expected(R„RRMRNRy(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest1bs
cCs0|jjddƒ|j|jdgdƒdS(Ns&<a>1<b/>&lt;2&gt;<c/>&#32;
&#x20;3</a>is1<2> 
 3s$buffered text not properly collapsed(RRMRNRy(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest2kscCsO|jdgƒ|jjddƒ|j|jdddddd	gd
ƒdS(NR)s<a>1<b/>2<c/>3</a>is<a>R‰s<b>RŠs<c>R‹s buffered text not properly split(R„RRMRNRy(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest3ps!cCs[|jddgƒd|j_|jjddƒ|j|jddddd	d
gƒdS(NR)R*s<a>1<b/>2<c/>3</a>is<a>s<b>s</b>s<c>s</c>s</a>(R„RfRR-RMRNRy(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest4vs
cCsX|jddgƒ|jjddƒ|j|jddddd	d
ddd
g	ƒdS(NR)R*s<a>1<b></b>2<c/>3</a>is<a>R‰s<b>s</b>RŠs<c>s</c>R‹s</a>(R„RRMRNRy(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest5}scCs^|jdddgƒ|jjddƒ|j|jdddd	d
ddd
dg	dƒdS(NR7R*R)s<a>1<b/>2<c></c>345</a> is<a>R‰s<b>s</b>RŠs<c>s</c>t345s</a>s buffered text not properly split(R„RRMRNRy(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest6ƒs
cCsj|jdddgƒ|jjddƒ|j|jdddd	d
ddd
dddddg
dƒdS(NR7R*R)s,<a>1<b/>2<c></c>3<!--abc-->4<!--def-->5</a> is<a>R‰s<b>s</b>RŠs<c>s</c>R‹s
<!--abc-->t4s
<!--def-->t5s</a>s buffered text not properly split(R„RRMRNRy(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest7‹s
(RRR
R~R-R)R*R7R„R†RˆRŒRRŽRRR’R•(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRx6s 															tHandlerExceptionTestcBseZd„Zd„ZRS(cCst|ƒ‚dS(N(tRuntimeError(R	R'R(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR)—scCsytjƒ}|j|_y|jddƒ|jƒWn<tk
rt}|j|jdddd|jdƒnXdS(Ns<a><b><c/></b></a>iitas*Expected RuntimeError for element 'a', buts	 found %r(RRR)RMRhR—RNR8(R	RRk((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRwšs(RRR)Rw(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR––s	tPositionTestcBs,eZd„Zd„Zd„Zd„ZRS(cCs|jdƒdS(Nts(t	check_pos(R	R'R(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR)¨scCs|jdƒdS(NRk(R›(R	R'((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR*«scCs†||jj|jj|jjf}|j|jt|jƒkdƒ|j|j}|j||d||fƒ|jd7_dS(Nstoo many parser eventss%Expected position %s, got position %si(	RtCurrentByteIndextCurrentLineNumbertCurrentColumnNumberRstuptoRrt
expected_listRN(R	teventtposR|((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR›®s		c	Csntjƒ|_|j|j_|j|j_d|_ddddddg|_d}|jj|dƒdS(NiRšiiiiiRkiiiiis<a>
 <b>
  <c/>
 </b>
</a>(Ršiii(Ršiii(Ršiii(Rkiii(Rkiii(Rkiii(RRRR)R*RŸR RM(R	txml((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRwºs		(RRR)R*R›Rw(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR™§s			t
sf1296433TestcBseZd„ZRS(csbddd}dtfd„ƒY‰‡fd†}tjƒ}||_|jt|j|ƒdS(Ns1<?xml version='1.0' encoding='iso8859'?><s>%s</s>R˜itSpecificExceptioncBseZRS((RR(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR¥Îscs
ˆ‚dS(N((R6(R¥(s-/usr/local/lib/python2.7/test/test_pyexpat.pythandlerÑs(t	ExceptionRRR-RRM(R	R£R¦R((R¥s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_parse_only_xml_dataÇs	(RRR¨(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR¤ÆstChardataBufferTestcBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„ZRS(s.
    test setting of chardata buffer size
    cCs|j|jdƒdƒdS(Nii(RNtsmall_buffer_test(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_1025_bytesÞscCs|j|jdƒdƒdS(Nièi(RNRª(R	((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_1000_bytesásc	Csœtjƒ}d|_|jtƒd|_WdQX|jtƒd|_WdQX|jtƒd|_WdQX|jtƒtjd|_WdQXdS(Niiÿÿÿÿig€@(	RRRRRXtbuffer_sizeRitsystmaxint(R	R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_wrong_sizeäs	cCs²ddd}ddd}tjƒ}|j|_d|_d|_d|_|j|ƒ|j|jdƒ|j|_|j|jdƒ|j|ƒ|j|jdƒdS(Ns-<?xml version='1.0' encoding='iso8859'?><s>%sR˜is</s>iii(	RRtcounting_handlerR-R­RtnRMRN(R	txml1txml2R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_unchanged_sizeðs			

cCs[ddd}dd}ddd}tjƒ}|j|_d|_d|_|j|jdƒd	|_|j|d	ƒ|j|jdƒ|j|jdƒd	|_|j	|jƒ|j|jdƒx$t
d
ƒD]}|j|d	ƒqÛW|j|jdƒd|_|j|jƒ|j|jdƒ|j|dƒ|j|jdƒdS(
Ns-<?xml version='1.0' encoding='iso8859'?><a>%sR˜itbis%s</a>tciii
ii(RRR±R-RR­RNR²RMR…trangeRs(R	R³R´txml3Rti((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_disabling_buffers.
					cCsd|ddS(Ns<?xml version='1.0'?><tag>R˜s</tag>((R	tbytes((s-/usr/local/lib/python2.7/test/test_pyexpat.pyt
make_document'scCs|jd7_dS(Ni(R²(R	R6((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR±*scCsUdd|}tjƒ}|j|_d|_d|_d|_|j|ƒ|jS(Ns1<?xml version='1.0' encoding='iso8859'?><s>%s</s>R˜iii(RRR±R-R­RR²RM(R	t
buffer_lenR£R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRª-s			
cCs»ddd}ddd}tjƒ}|j|_d|_d|_|j|jdƒd|_|j|dƒ|jd9_|j|jd	ƒ|j|dƒ|j|jdƒdS(
Ns0<?xml version='1.0' encoding='iso8859'?><a><s>%sR˜isaaa</s><s>%s</s></a>iiiii(	RRR±R-RR­RNR²RM(R	R³R´R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_change_size_18s			cCs»ddd}ddd}tjƒ}|j|_d|_d|_|j|jdƒd|_|j|dƒ|jd	_|j|jd
ƒ|j|dƒ|j|jdƒdS(Ns1<?xml version='1.0' encoding='iso8859'?><a>a<s>%sR˜iÿsaaa</s><s>%s</s></a>iiiiiii(	RRR±R-RR­RNR²RM(R	R³R´R((s-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_change_size_2Hs			(
RRt__doc__R«R¬R°RµR»R½R±RªR¿RÀ(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyR©Ùs					 				tMalformedInputTextcBseZd„Zd„ZRS(cCscd}tjƒ}y|j|tƒ|jƒWn,tjk
r^}|jt|ƒdƒnXdS(Ns
s unclosed token: line 2, column 0(RRRMtTrueRht
ExpatErrorRNRj(R	R£RRk((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRŒYscCsHd}tjƒ}d}|jtj|ƒ|j|tƒWdQXdS(Ns<?xml versionÂ…='1.0'?>
s3XML declaration not well-formed: line 1, column \d+(RRtassertRaisesRegexpRÄRMRÃ(R	R£Rterr_pattern((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRbs
(RRRŒR(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRÂXs		tForeignDTDTestscBs eZdZd„Zd„ZRS(sE
    Tests for the UseForeignDTD method of expat parser objects.
    csÁg‰‡fd†}tjƒ}|jtƒ|jtjƒ||_|jdƒ|jˆdgƒgˆ(tjƒ}|jƒ|jtjƒ||_|jdƒ|jˆdgƒdS(sÒ
        If UseForeignDTD is passed True and a document without an external
        entity reference is parsed, ExternalEntityRefHandler is first called
        with None for the public and system ids.
        csˆj||fƒdS(Ni(R%(RDR9t	system_idt	public_id(thandler_call_args(s-/usr/local/lib/python2.7/test/test_pyexpat.pytresolve_entitytss<?xml version='1.0'?><element/>N(NN(NN(
RRt
UseForeignDTDRÃtSetParamEntityParsingtXML_PARAM_ENTITY_PARSING_ALWAYSRGRMRNRf(R	RËR((RÊs-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_use_foreign_dtdms
	

	
cskg‰‡fd†}tjƒ}|jtƒ|jtjƒ||_|jdƒ|jˆdgƒdS(sÒ
        If UseForeignDTD is passed True and a document with an external
        entity reference is parsed, ExternalEntityRefHandler is called with
        the public and system ids from the document.
        csˆj||fƒdS(Ni(R%(RDR9RÈRÉ(RÊ(s-/usr/local/lib/python2.7/test/test_pyexpat.pyRËss@<?xml version='1.0'?><!DOCTYPE foo PUBLIC 'bar' 'baz'><element/>tbartbazN(RÐRÑ(	RRRÌRÃRÍRÎRGRMRN(R	RËR((RÊs-/usr/local/lib/python2.7/test/test_pyexpat.pyttest_ignore_use_foreign_dtd‰s
	(RRRÁRÏRÒ(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyRÇis	cCs,tttttttttt	t
tƒdS(N(RRR ReRoRxR–R™R¤R©RÂRÇ(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyt	test_mainst__main__(RSR®tunittesttxml.parsersRRwRttest.test_supportRRtTestCaseRR,R ReRoRxR–R™R¤R©RÂRÇRÓR(((s-/usr/local/lib/python2.7/test/test_pyexpat.pyt<module>s&=´#`4	


Zerion Mini Shell 1.0