tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
Q\¬Qc@s–ddlZddlZddlZddlmZddlmZddlmZm    Z    dej
fd„ƒYZ dZ 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_unittesttSetAttributeTestcBs,eZd„Zd„Zd„Zd„ZRS(cCsFtjddƒ|_ddgddgddgddgg|_dS(Ntnamespace_separatort!iii(Rt ParserCreatetparsert set_get_pairs(tself((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytsetUps
            cCs@x9|jD].\}}||j_|j|jj|ƒq
WdS(N(R    Rtreturns_unicodet assertEqual(R
txty((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_returns_unicodes cCs@x9|jD].\}}||j_|j|jj|ƒq
WdS(N(R    Rtordered_attributesR (R
RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_ordered_attributess cCs@x9|jD].\}}||j_|j|jj|ƒq
WdS(N(R    Rtspecified_attributesR (R
RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_specified_attributes!s (t__name__t
__module__R RRR(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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    ParseTestcBsfeZddd„ƒYZdddddddd    d
d d d ddgZd„Zd„Zd„ZRS(t    OutputtercBs˜eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„ZRS(cCs g|_dS(N(tout(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyt__init__AscCs,|jjdt|ƒdt|ƒƒdS(NsStart element: t (RtappendtreprR(R
tnametattrs((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytStartElementHandlerDscCs|jjdt|ƒƒdS(Ns End element: (RRR(R
R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytEndElementHandlerHscCs3|jƒ}|r/|jjdt|ƒƒndS(NsCharacter data: (tstripRRR(R
tdata((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytCharacterDataHandlerKs cCs,|jjdt|ƒdt|ƒƒdS(NsPI: R(RRR(R
ttargetR#((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytProcessingInstructionHandlerPscCs,|jjdt|ƒdt|ƒƒdS(Ns    NS decl: R(RRR(R
tprefixturi((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytStartNamespaceDeclHandlerSscCs|jjdt|ƒƒdS(NsEnd of NS decl: (RRR(R
R'((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytEndNamespaceDeclHandlerVscCs|jjdƒdS(NsStart of CDATA section(RR(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytStartCdataSectionHandlerYscCs|jjdƒdS(NsEnd of CDATA section(RR(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytEndCdataSectionHandler\scCs|jjdt|ƒƒdS(Ns    Comment: (RRR(R
ttext((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytCommentHandler_scGs-|\}}}}|jjd|fƒdS(NsNotation declared: %s(RR(R
targsRtbasetsysidtpubid((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytNotationDeclHandlerbscGs0|\}}}}}|jjd|fƒdS(NsUnparsed entity decl: %s(RR(R
R/t
entityNameR0tsystemIdtpublicIdt notationName((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytUnparsedEntityDeclHandlerfscCs|jjdƒdS(NsNot standalonei(RR(R
tuserData((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytNotStandaloneHandlerjscGs1|\}}}}|jjd|dfƒdS(NsExternal entity ref: %si(RR(R
R/tcontextR0tsysIdtpubId((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytExternalEntityRefHandlernscCsdS(N((R
R9((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytDefaultHandlersscCsdS(N((R
R9((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytDefaultHandlerExpandvs(RRRR R!R$R&R)R*R+R,R.R3R8R:R>R?R@(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR@s                                                             R R!R$R&R8R3R)R*R.R+R,R?R@R>cCsÅ|jƒ}tjddƒ}x*|jD]}t||t||ƒƒq(Wd|_|jtdƒ|j    }|j
|ddƒ|j
|ddƒ|j
|ddƒ|j
|d    d
ƒ|j
|d d ƒ|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' {}i sStart 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'( RRRt handler_namestsetattrtgetattrR tParseR#RR (R
RRRtop((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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
|d d ƒ|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' {}i sStart 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'( RRRR RARBRCRDR#RR (R
RRRRE((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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 |d d ƒ|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' {}i sStart 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(RRRR RARBRCtStringIOR#t    ParseFileRR topenRtTESTFNtcloset assertRaisest
ValueErrortunlink(R
RRRtfileREtfp((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_parse_file¿s@          
 ((RRRRARFRGRS(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR?s:            tNamespaceSeparatorTestcBs#eZd„Zd„Zd„ZRS(cCs.tjƒtjddƒtjddƒdS(NRR(RRtNone(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyt
test_legalés
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    TypeErrorR tstrRO(R
te((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyt test_illegalðs cCstjddƒdS(NRt(RR(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_zero_lengthÿs    (RRRVR[R](((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyRTès        t InterningTestcBseZd„ZRS(cs‹tjƒ}g‰‡fd†}||_||_|jddƒˆd}|jtˆƒdƒx!ˆD]}|j||kƒqjWdS(Ncsˆj|ƒdS(N(R(RR/(tL(sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyt    collectorss<e> <e/> <e></e> </e>iii(RRR R!RDR tlent
assertTrue(R
tpR`ttagtentry((R_sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest s         
 (RRRf(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR^ stBufferTextTestcBs›eZd„Zd„Zd„Zd„Zd„Zd„Zgd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„ZRS(cCs7g|_tjƒ|_d|j_|j|j_dS(Ni(tstuffRRRt buffer_textR$(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR s     c    Cs3|j|j|d||jtt|ƒfƒdS(Ns%s
stuff    = %r
expected = %r(R Rhtmaptunicode(R
texpectedtlabel((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytcheck#scCs|jj|ƒdS(N(RhR(R
R-((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR$(scCs]|jjd|ƒ|jdƒ}|dkr>d|j_n|dkrYd|j_ndS(Ns<%s>s buffer-texttyesitnoi(RhRtgetRRi(R
RRtbt((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR +s   cCs|jjd|ƒdS(Ns</%s>(RhR(R
R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR!3scCs|jjd|ƒdS(Ns    <!--%s-->(RhR(R
R#((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR.6scCs1x*|D]"}t|j|t||ƒƒqWdS(N(RBRRC(R
thandlersR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyt setHandlers9s cCs tjƒ}|j|jƒdS(N(RRt assertFalseRi(R
R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_default_to_disabled=s cCsC|j|jjƒ|jjddƒ|j|jdgdƒdS(Ns<a>1<b/>2<c/>3</a>it123s$buffered text not properly collapsed(RbRRiRDR Rh(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_buffering_enabledAsc
CsU|jdgƒ|jjddƒ|j|jdddddd    d
d gd ƒ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(RtRRDR Rh(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest1Hs
 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(RRDR Rh(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest2QscCsO|jdgƒ|jjddƒ|j|jdddddd    gd
ƒdS( NR s<a>1<b/>2<c/>3</a>is<a>Rys<b>Rzs<c>R{s buffered text not properly split(RtRRDR Rh(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest3Vs!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>(RtRURR$RDR Rh(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest4\s
  c CsX|jddgƒ|jjddƒ|j|jddddd    d
d d d g    ƒdS(NR R!s<a>1<b></b>2<c/>3</a>is<a>Rys<b>s</b>Rzs<c>s</c>R{s</a>(RtRRDR Rh(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest5cs c Cs^|jdddgƒ|jjddƒ|j|jdddd    d
d d d dg    dƒdS(NR.R!R s<a>1<b/>2<c></c>345</a> is<a>Rys<b>s</b>Rzs<c>s</c>t345s</a>s buffered text not properly split(RtRRDR Rh(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest6is  
 cCsj|jdddgƒ|jjddƒ|j|jdddd    d
d d d dddddg dƒdS(NR.R!R s,<a>1<b/>2<c></c>3<!--abc-->4<!--def-->5</a> is<a>Rys<b>s</b>Rzs<c>s</c>R{s
<!--abc-->t4s
<!--def-->t5s</a>s buffered text not properly split(RtRRDR Rh(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest7qs 
 (RRR RnR$R R!R.RtRvRxR|R}R~RR€R‚R…(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyRgs                                                              tHandlerExceptionTestcBseZd„Zd„ZRS(cCst|ƒ‚dS(N(t RuntimeError(R
RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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 RDRWR‡R R/(R
RRZ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyRf€s  (RRR Rf(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR†|s    t PositionTestcBs,eZd„Zd„Zd„Zd„ZRS(cCs|jdƒdS(Nts(t    check_pos(R
RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR ŽscCs|jdƒdS(NRZ(R‹(R
R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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(    RtCurrentByteIndextCurrentLineNumbertCurrentColumnNumberRbtuptoRat expected_listR (R
teventtposRl((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR‹”s         c    Csntjƒ|_|j|j_|j|j_d|_ddddddg|_d}|jj|dƒdS(NiRŠiiii iRZiiiiis<a>
 <b>
  <c/>
 </b>
</a>(RŠiii(RŠiii(RŠi ii(RZiii(RZiii(RZiii(RRRR R!RRRD(R
txml((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyRf s        (RRR R!R‹Rf(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR•´scs
ˆ‚dS(N((R-(R•(sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pythandler·s(t    ExceptionRRR$RNRD(R
R“R–R((R•sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_parse_only_xml_data­s      (RRR˜(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR”¬stChardataBufferTestcBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z RS( s.
    test setting of chardata buffer size
    cCs|j|jdƒdƒdS(Nii(R tsmall_buffer_test(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_1025_bytesÄscCs|j|jdƒdƒdS(Nièi(R Rš(R
((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_1000_bytesÇscshtjƒ‰dˆ_‡fd†}|jt|tjdƒ|jt|dƒ|jt|dƒdS(Nics |ˆ_dS(N(t buffer_size(tsize(R(sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytfÍsiÿÿÿÿi(RRRiRNRXtsystmaxintRO(R
RŸ((RsY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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RitnRDR (R
txml1txml2R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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
i i ( RRR£R$RiRR R¤RDRutrangeRb(R
R¥R¦txml3Rti((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_disabling_bufferës.
                      cCsd|ddS(Ns<?xml version='1.0'?><tag>Rˆs</tag>((R
tbytes((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyt make_document scCs|jd7_dS(Ni(R¤(R
R-((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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RiR¤RD(R
t
buffer_lenR“R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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$RiRR R¤RD(R
R¥R¦R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_change_size_1s              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$RiRR R¤RD(R
R¥R¦R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_change_size_2,s              ( RRt__doc__R›RœR¢R§R­R¯R£RšR±R²(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR™¿s            
                        tMalformedInputTextcBseZd„Zd„ZRS(cCscd}tjƒ}y|j|tƒ|jƒWn,tjk
r^}|jt|ƒdƒnXdS(Nt
s unclosed token: line 2, column 0(RRRDtTrueRWt
ExpatErrorR RY(R
R“RRZ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR|=s cCscd}tjƒ}y|j|tƒ|jƒWn,tjk
r^}|jt|ƒdƒnXdS(Ns<?xml version…='1.0'?>
s2XML declaration not well-formed: line 1, column 14(RRRDR¶RWR·R RY(R
R“RRZ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR}Fs (RRR|R}(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR´<s        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(R;R0t    system_idt    public_id(thandler_call_args(sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pytresolve_entityZss<?xml version='1.0'?><element/>N(NN(NN(
RRt UseForeignDTDR¶tSetParamEntityParsingtXML_PARAM_ENTITY_PARSING_ALWAYSR>RDR RU(R
R¼R((R»sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_use_foreign_dtdSs        
     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(R;R0R¹Rº(R»(sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR¼vss@<?xml version='1.0'?><!DOCTYPE foo PUBLIC 'bar' 'baz'><element/>tbartbazN(RÁRÂ(    RRR½R¶R¾R¿R>RDR (R
R¼R((R»sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyttest_ignore_use_foreign_dtdos      (RRR³RÀRÃ(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyR¸Os    c Cs,tttttttttt    t
t ƒ dS(N( RRRRTR^RgR†R‰R”R™R´R¸(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyt    test_mainƒst__main__(RIR tunittestt xml.parsersRRfRttest.test_supportRRtTestCaseRR#RRTR^RgR†R‰R”R™R´R¸RÄR(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pyexpat.pyt<module>s& .©#`}4