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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
Q\¬Qc@sddlZddlmZddlmZmZmZddlZddlZddl    Zddl
Zddl    m Z m Z m Z mZddl    mZedddƒZed    „Zd
„Zd „Zd ejfd „ƒYZd„ZedkreƒndS(iÿÿÿÿN(tStringIO(tverboset run_unittesttfindfile(tparsetNodetDocumentt parseString(tgetDOMImplementationstest.xmltsubdirt xmltestdatacCstƒjdd|ƒS(Ntdoc(RtcreateDocumenttNone(tdoctype((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytcreate_doc_without_doctypescCs®tƒjdddƒ}g|j_g|j_tjjj    dddƒ}|jjj
|ƒtjjj ddddƒ}d|_ d|_ d|_|jjj
|ƒ|S(    NR s my-notations"http://xml.python.org/notations/mys    my-entitys!http://xml.python.org/entities/mys1.0sutf-8sus-ascii(RtcreateDocumentTypeR tentitiest_seqt    notationstxmltdomtminidomtNotationtappendtEntitytversiontencodingtactualEncoding(Rtnotationtentity((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytcreate_nonempty_doctypes                      cCsCtƒ}t|ƒ}||jjdƒ_||jjdƒ_|S(Ni(RRRtitemt ownerDocumentR(RR ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytcreate_doc_with_doctype)s
     t MinidomTestcBsqeZdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d    „Z
d
„Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z!d!„Z"d"„Z#d#„Z$d$„Z%d%„Z&d&„Z'd'„Z(d(„Z)d)„Z*d*„Z+d+„Z,d,„Z-d-„Z.d.„Z/d/„Z0d0„Z1d1„Z2d2„Z3d3„Z4d4„Z5d5„Z6d6„Z7d7„Z8d8„Z9d9„Z:d:„Z;d;„Z<d<„Z=d=„Z>d>„Z?d?„Z@d@„ZAdA„ZBdB„ZCdC„ZDdD„ZEdE„ZFdF„ZGdG„ZHdH„ZIdI„ZJdJ„ZKdK„ZLdL„ZMdM„ZNdN„ZOdO„ZPdP„ZQdQ„ZRdR„ZSdS„ZTdT„ZUdU„ZVdV„ZWdW„ZXdX„ZYdY„ZZdZ„Z[d[„Z\d\„Z]d]„Z^d^„Z_d_„Z`d`„Zada„Zbdb„Zcdc„Zddd„Zede„Zfdf„Zgdg„Zhdh„Zidi„Zjdj„Zkdk„Zldl„Zmdmd~dn„ƒYZndo„Zodp„Zpdq„Zqdr„Zrds„Zsdt„Ztdu„Zudv„Zvdw„Zwdx„Zxdy„Zydz„Zzd{„Z{d|„Z|d}„Z}RS(tTestcCs|j||ƒdS(N(t
assertTrue(tselfttestttestname((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytconfirm1scCs9|j}|j||kdt|ƒt|ƒfƒdS(Nslooking for %s, found %s(t    wholeTextR)trepr(R&tnodetstt((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytcheckWholeText4s    cCsBttttƒjƒƒƒ}|jƒ|jt|tƒƒdS(N(    RRtopenttstfiletreadtunlinkR)t
isinstanceR(R&R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestParseFromFile8s
cCsBttƒ}|j|jdƒ|jjdƒkƒ|jƒdS(NtLI(RR1R)tgetElementsByTagNametdocumentElementR3(R&R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestGetElementsByTagName=s cCs²tdƒ}|j}|jd}|jdƒ}|j||ƒ|jt|jƒdkoñ|jjdkoñ|jd|koñ|jjdƒ|koñ|jd|koñ|jjdƒ|koñ|j    |koñ|j
|koñ|j ƒdkdƒ|jdƒ}|j|dƒ|jt|jƒdkoÇ|jjdkoÇ|jd|koÇ|jjdƒ|koÇ|jd|koÇ|jjdƒ|koÇ|j
|koÇ|j |koÇ|j ƒd    kdƒ|jd
ƒ}|j||ƒ|jt|jƒd ko|jjd ko|jd|ko|jjdƒ|ko|jd|ko|jjdƒ|ko|j|ko|j |ko|j ƒd kdƒ|jƒdS( Ns<doc><foo/></doc>itelementiis<doc><element/><foo/></doc>s0testInsertBefore -- node properly placed in treeis%<doc><element/><foo/><element/></doc>tbaris+<doc><element/><foo/><bar/><element/></doc>(RR8t
childNodest createElementt insertBeforeR)tlentlengthR t
firstChildt    lastChildttoxmlR tpreviousSiblingt nextSiblingR3(R&Rtroottelemtnelemtnelem2((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestInsertBeforeCsR          cCs¡tdƒ}|jdƒ}|jdƒ}|jdƒ}|jdƒ}|jj|ƒ|jƒ}|j|ƒ|j|ƒ|j|ƒ||||||fS(Ns<doc/>toriginaltfooR;tbat(RtcreateTextNodeR8t appendChildtcreateDocumentFragment(R&Rtorigtc1tc2tc3tfrag((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt_create_fragment_test_nodesns     cCsê|jƒ\}}}}}}|jj|dƒ|jt|jjƒ||||fkdƒ|jƒ|jƒ|jƒ\}}}}}}|jj||ƒ|jt|jjƒ||||fkdƒ|jƒ|jƒdS(NsinsertBefore(<fragment>, None)sinsertBefore(<fragment>, orig)(RVR8R>R R)ttupleR<R3(R&RRQRRRSRTRU((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestInsertBeforeFragment{s
 
 
cCssttƒ}|jj|jdƒƒ|j|jjdjdkƒ|j|jjdjdkƒ|j    ƒdS(NuHelloiÿÿÿÿs#commenttHello(
RR1R8ROt createCommentR)R<tnodeNametdataR3(R&R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAppendChildŒs
   cCst|jƒ\}}}}}}|jj|ƒ|jt|jjƒ||||fkdƒ|jƒ|jƒdS(NsappendChild(<fragment>)(RVR8ROR)RWR<R3(R&RRQRRRSRTRU((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAppendChildFragment“s
cCs~|jƒ\}}}}}}|jj||ƒ|jƒ|jt|jjƒ|||fkdƒ|jƒ|jƒdS(NsreplaceChild(<fragment>)(RVR8t replaceChildR3R)RWR<(R&RRQRRRSRTRU((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestReplaceChildFragmentœs
$
cCsêtƒ}|jdƒ}|jdƒ}|jtjj|j|ƒ|j|ƒ|jtjj|j||ƒ|jtjj|j    ||ƒ|j
}|jtjj|j |ƒ|jtjj|j |ƒ|j|ƒ|j ƒdS(NR:ttext(RR=RNt assertRaisesRRtHierarchyRequestErrROR>R_t
attributest setNamedItemtsetNamedItemNSR3(R&RRGRatnodemap((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestLegalChildren¥s           cCs¶tƒ}|jdƒ}|j}d|d<|jdƒ}|j|j|kdƒ|j|j|kdƒ|j|jdkdƒ|j|jdkdƒ|j    ƒ|j    ƒdS(    NR:R;RLis-NamedNodeMap.__setitem__() sets ownerDocuments,NamedNodeMap.__setitem__() sets ownerElements%NamedNodeMap.__setitem__() sets values)NamedNodeMap.__setitem__() sets nodeValue(
RR=RdR R)R!t ownerElementtvaluet    nodeValueR3(R&RRGtattrsta((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestNamedNodeMapSetItemºs        
 
cCsUttƒ}|j|ƒ|j|jdƒƒ|j|jdj ƒ|jƒdS(NRLiÿÿÿÿ(RR1R)RORZR<R3(R&R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testNonZeroËs
  cCsttƒ}|jƒdS(N(RR1R3(R&R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt
testUnlinkÒs cCs=tƒ}|j|jdƒƒ|j|jƒ|jƒdS(Ntabc(RROR=R)R8R3(R&R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testElementÖs    cCs“tdƒ}|j}|jddƒ|j|jƒdkdƒ|jdƒ}|j|j|kdƒ|j|j|jkdƒ|jƒdS(Ns<abc/>tspamtjam2s<abc spam="jam2"/>ttestAAAs!setAttribute() sets ownerDocuments setAttribute() sets ownerElement(    RR8t setAttributeR)RCtgetAttributeNodeR!RiR3(R&RtelRm((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyRuÜs     cCs_tdƒ}|j}|jddƒ|jddƒ|j|jƒdkdƒ|jƒdS(Ns<abc/>RstjamRts<abc spam="jam2"/>ttestAAB(RR8RvR)RCR3(R&RRx((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyRzès      cCsBtƒ}|j|jdƒƒ}|jddƒ|j|jdƒdkƒ|j|jdjdkƒ|jddƒ|j|jdƒdkƒ|j|jdjdkƒ|jt|jƒdkƒ|jddƒ|j|jdƒdkƒ|j|jdjdkƒ|jt|jƒdkƒ|j    ƒdS(NRqtdeftghitjkltmnoitnewval(
RROR=RvR)t getAttributeRdRjR?R3(R&Rtchild((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testAddAttrðs    cCstƒ}|j|jdƒƒ}|jt|jƒdkƒ|jddƒ|jt|jƒdkƒ|jd=|jt|jƒdkƒ|jƒdS(NRqiR{R|i(RROR=R)R?RdRvR3(R&RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestDeleteAttrs    
cCs„tƒ}|j|jdƒƒ}|jddƒ|jt|jƒdkƒ|jdƒ|jt|jƒdkƒ|jƒdS(NRqR{R|ii(    RROR=RvR)R?RdtremoveAttributeR3(R&RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestRemoveAttrs     cCs tƒ}|j|jddƒƒ}|jdddƒ|jdddƒ|jt|jƒdkƒ|jddƒ|jt|jƒd    kƒ|jƒdS(
Nshttp://www.python.orgs
python:abcshttp://www.w3.orgs xmlns:pythonspython:abcattrRLitabcattri(    RROtcreateElementNStsetAttributeNSR)R?RdtremoveAttributeNSR3(R&RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestRemoveAttrNSs     cCs¨tƒ}|j|jdƒƒ}|jddƒ|jt|jƒdkƒ|jdƒ}|j|ƒ|jt|jƒdko–|jdƒdkƒ|j
ƒdS(NRLRsRyii( RROR=RvR)R?RdRwtremoveAttributeNodeR R3(R&RRR,((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestRemoveAttributeNode&s     cCs®tdƒ}|j}|jddƒ|jt|jƒdkƒ|jddƒ|jdƒ|jt|jƒdkoÉ|jdjdkoÉ|jdjdkoÉ|j    dƒdkoÉ|j
dƒj ƒd|jd<|jt|jƒdkoC|jdjdkoC|jdjdkoC|j    dƒdkoC|jdj ƒ|jddƒ|jt|jƒdkoñ|jdjdkoñ|jdjdkoñ|j    dƒdkoñ|jdjdkoñ|jdjdkoñ|j    dƒdkƒd    |jd<|jt|jƒdkoœ|jdjdkoœ|jdjdkoœ|j    dƒdkoœ|jdjd    koœ|jdjd    koœ|j    dƒd    kƒ|j ƒdS(
Ns<abc/>RsRyitbamthamtspam2itbam2( RR8RvR)R?RdtsetIdAttributeRjRkR€RwtisIdR3(R&RRx((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestChangeAttr1sD        cCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestGetAttrListWscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestGetAttrValuesZscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestGetAttrLength\scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestGetAttribute^scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestGetAttributeNS`scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestGetAttributeNodebscCsªd}t|ƒ}|jddƒ}|jt|ƒdko˜|djdko˜|djdko˜|djdko˜|djdko˜|djdkƒ|j    ƒdS(NsZ<foo xmlns:minidom='http://pyxml.sf.net/minidom'>
        <minidom:myelem/>
        </foo>shttp://pyxml.sf.net/minidomtmyelemiiRsminidom:myelem(
RtgetElementsByTagNameNSR)R?t namespaceURIt    localNametprefixttagNameR[R3(R&tdRtelems((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestGetElementsByTagNameNSds         cCs/|j||ƒ}|jt|ƒdkƒdS(Ni(R›R)R?(R&R tnsuritlnametnodelist((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt5get_empty_nodelist_from_elements_by_tagName_ns_helpersscCsŽtdƒ}|j|ddƒ|j|ddƒ|j|ddƒtdƒ}|j|ddƒ|j|ddƒ|j|d    d
ƒdS( Ns<doc/>s"http://xml.python.org/namespaces/at    localnamet*tsplats3<doc xmlns="http://xml.python.org/splat"><e/></doc>shttp://xml.python.org/splats    not-theres#http://somewhere.else.net/not-therete(RR¦(R&R ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt+testGetEmptyNodeListFromElementsByTagNameNSxs       cCsZtƒ}|j|jdƒƒ}t|ƒ}t|ƒ}|j||kƒ|jƒdS(NRq(RROR=R+tstrR)R3(R&RRxtstring1tstring2((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestElementReprAndStr‰s       cCsZtƒ}|j|jdƒƒ}t|ƒ}t|ƒ}|j||kƒ|jƒdS(Nuabc(RROR=R+R¬R)R3(R&RRxR­R®((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestElementReprAndStrUnicode‘s       cCsptƒ}|j|jddƒƒ}t|ƒ}t|ƒ}|j||kƒ|jd|kƒ|jƒdS(Nuhttp://www.slashdot.orgu    slash:abcs    slash:abc(RROR‡R+R¬R)R3(R&RRxR­R®((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestElementReprAndStrUnicodeNS™s      cCs`tƒ}|j|jdƒƒ}|jddƒ}|jt|ƒt|ƒkƒ|jƒdS(NuabcRqR{(RROR=RvR)R¬R+R3(R&RRxR,((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttributeRepr£s
    cCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestTextNodeReprªscCs?d}t|ƒ}|jƒ}|jƒ|j||kƒdS(Ns <?xml version="1.0" ?><a b="c"/>(RRCR3R)(R&R¬Rtdomstr((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testWriteXML¬s
 
cCsQd}t|ƒ}|jddƒ}|jƒ|j||jddƒkƒdS(Ns"<?xml version="1.0" ?>
<a b="c"/>
tnewls
s
(Rt toprettyxmlR3R)treplace(R&R¬RR´((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAltNewline³s
 
cCsªd}|jtdƒjƒ|dƒ|jtdƒjƒ|dƒ|jtdƒjƒ|dƒ|jtdƒjƒ|d    ƒ|jtd
ƒjƒ|d ƒdS( Ns<?xml version="1.0" ?>
s<B>A</B>s    <B>A</B>
s<C>A<B>A</B></C>s<C>
   A
   <B>A</B>
</C>
s<C><B>A</B>A</C>s<C>
   <B>A</B>
   A
</C>
s<C><B>A</B><B>A</B></C>s<C>
   <B>A</B>
   <B>A</B>
</C>
s<C><B>A</B>A<B>A</B></C>s <C>
   <B>A</B>
   A
   <B>A</B>
</C>
(t assertEqualRR·(R&tdecl((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt test_toprettyxml_with_text_nodesºs    cCsutƒ}|jdƒ}|j|jdƒƒ|j|jdƒƒ|j|ƒd}|j|jƒ|dƒdS(NuelemuTEXTs<?xml version="1.0" ?>
s<elem>
   TEXT
   TEXT
</elem>
(RR=RORNRºR·(R&RRGR»((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt)test_toprettyxml_with_adjacent_text_nodesÈs     cCswxpdD]h}t|ƒ}t|jƒƒ}|j|jdƒdjdjƒ|jdƒdjdjƒƒqWdS(Ns<B>A</B>s<A><B>C</B></A>tBi(s<B>A</B>s<A><B>C</B></A>(RR·RºR7R<RC(R&R¬Rtdom2((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt/test_toprettyxml_preserves_content_of_text_nodeÓs   c CsÕtdƒ}|jj}|j|jdkoÍ|jdkoÍ|jdkoÍ|jtj    koÍ|j
dkoÍ|j ƒ oÍt |jƒdkoÍ|jdkoÍ|jdkoÍ|jdkoÍ|jtjjkƒdS(Ns<e><?mypi     
 data     
 ?></e>tmypisdata     
 i(RR8RAR)ttargetR\R[tnodeTypeRtPROCESSING_INSTRUCTION_NODERdR t hasChildNodesR?R<RBRRœRRtEMPTY_NAMESPACE(R&Rtpi((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestProcessingInstructionÜs   cCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestProcessingInstructionReprëscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testTextRepríscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testWriteTextïscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestDocumentElementñscCsOtdƒ}|jdƒ}|jtjj|j|ƒ|jƒ|jƒdS(Ns<doc/>textra(RR=RbRRRcROR3(R&R RG((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestTooManyDocumentElementsós
 
cCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestCreateElementNSûscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestCreateAttributeNSýscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt    testParseÿscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestParseStringscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testCommentscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrListItemscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrListItemsscCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrListItemNS    scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrListKeys scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrListKeysNS scCsrtdƒ}|j}|j}|jdƒ}|jdƒ}|j|j|ƒƒ|jtj    j
|jdƒdS(Ns <doc a=''/>Rm( RR8RdRwtremoveNamedItemR)t
isSameNodeRbRRt NotFoundErr(R&R RªRlta1ta2((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestRemoveNamedItems         cCs{tdƒ}|j}|j}|jddƒ}|jddƒ}|j|j|ƒƒ|jtj    j
|jddƒdS(Ns.<doc xmlns:a='http://xml.python.org/' a:b=''/>shttp://xml.python.org/tb( RR8RdtgetAttributeNodeNStremoveNamedItemNSR)RÚRbRRRÛ(R&R RªRlRÜRÝ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestRemoveNamedItemNSs         cCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrListValues"scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrListLength$scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrList__getitem__&scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestAttrList__setitem__(scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestSetAttrValueandNodeValue*scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestParseElement,scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestParseAttributes.scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestParseElementNamespaces0scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestParseAttributeNamespaces2scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestParseProcessingInstructions4scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestChildNodes6scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestFirstChild8scCsdS(N((R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestHasChildNodes:sc Cs
|j}|j}|jƒ}|jƒ}|jƒ|jƒ|j||kdƒx¯tt|ƒƒD]›}|j|ƒ}    |j|ƒ}
|j|    |
k    oâ|    j|
jkoâ|    j|
jkoâ|    j    |
j    koâ|    j
|
j
kdƒ|j|
j |kdƒqgWdS(Ns(clone of element has same attribute keyss3clone of attribute node has proper attribute valuess'clone of attribute node correctly owned( RdtkeystsortR)trangeR?R RjRkRœRRi( R&te1te2R'tattrs1tattrs2tkeys1tkeys2tiRÜRÝ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt!_testCloneElementCopiesAttributes<s$          
 
cCstdƒ}|j}|j|ƒ}|j||d|r?dpBdƒd|_|_|jddƒ|jdd    ƒ||fS(
Ns<doc attr='value'><foo/></doc>ttestCloneElementtDeeptShallowtMODIFIEDtattrs    NEW VALUEtaddedtVALUE(RR8t    cloneNodeRúRŸR[Rv(R&tdeepRRFtclone((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt_setupCloneElementPs     cCsu|jdƒ\}}|jt|jƒdko`|jjdko`|jdko`|jƒdkdƒ|jƒdS(Nis<doc attr="value"/>ttestCloneElementShallow(    RR)R?R<R@t
parentNodeR RCR3(R&RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyR\scCsu|jdƒ\}}|jt|jƒdko`|jjdko`|jdko`|jƒdkdƒ|jƒdS(Nis<doc attr="value"><foo/></doc>ttestCloneElementDeep(    RR)R?R<R@RR RCR3(R&RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyRescCs5tdƒ}|jdƒ}|j|dkdƒdS(Ns<?xml version='1.0'?>
<!-- comment --><!DOCTYPE doc [
<!NOTATION notation SYSTEM 'http://xml.python.org/'>
]>
<doc attr='value'/>isFtestCloneDocumentShallow: shallow cloning of documents makes no sense!(RRR)R (R&R tdoc2((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestCloneDocumentShallowns cCs8tdƒ}|jdƒ}|j|j|ƒp<|j|ƒ dƒ|jt|jƒt|jƒkdƒ|j|jjtj    kdƒ|j|jj
j|ƒdƒ|j|jj|jƒ dƒ|j dk    r4|j|j jtj kdƒ|j|j j
j|ƒƒ|j|j j|j ƒ ƒndS(    Ns<?xml version='1.0'?>
<!-- comment --><!DOCTYPE doc [
<!NOTATION notation SYSTEM 'http://xml.python.org/'>
]>
<doc attr='value'/>is4testCloneDocumentDeep: document objects not distincts8testCloneDocumentDeep: wrong number of Document childrens:testCloneDocumentDeep: documentElement not an ELEMENT_NODEs@testCloneDocumentDeep: documentElement owner is not new documents;testCloneDocumentDeep: documentElement should not be shareds7testCloneDocumentDeep: doctype not a DOCUMENT_TYPE_NODE(RRR)RÚR?R<R8RÃRt ELEMENT_NODER!RR tDOCUMENT_TYPE_NODE(R&R R    ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestCloneDocumentDeepzs" "!cCs”tƒ}|jdƒ}|j|dk    o|j|jko|j|jko|j|jko|j|jkot|j    ƒt|j    ƒko|j    j
t|j    ƒƒdkot|j ƒt|j ƒko|j j
t|j ƒƒdkot|j ƒdkƒxæt t|j    ƒƒD]Ï}|j    j
|ƒ}|j    j
|ƒ}|j|j|ƒ oç|j|ƒ oç|j|jkoç|j|jkoç|j|jkoç|j|jkoç|j|jkoç|j|jkoç|j|jkƒqWxžt t|j ƒƒD]‡}|j j
|ƒ}|j j
|ƒ}|j|j|ƒ oˆ|j|ƒ oˆ|j|jkoˆ|j|jkoˆ|j|jkƒqWdS(Nii(RRR)R R[tnametpublicIdtsystemIdR?RR RR<RòRÚt notationNameRRR(R&RRRùtsetcetsntcn((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestCloneDocumentTypeDeepOk“s@    !!cCs5tƒ}|jjdƒ}|j|dkdƒdS(NittestCloneDocumentTypeDeepNotOk(R"RRR)R (R&R R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyRµs    c Csætƒ}|jdƒ}|j|dk    oÞ|j|jkoÞ|j|jkoÞ|j|jkoÞ|j|jkoÞt|j    ƒdkoÞ|j    j
dƒdkoÞt|j ƒdkoÞ|j j
dƒdkoÞt|j ƒdkƒdS(Ni( RRR)R R[RRRR?RR RR<(R&RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestCloneDocumentTypeShallowOkºs    cCs5tƒ}|jjdƒ}|j|dkdƒdS(Nit!testCloneDocumentTypeShallowNotOk(R"RRR)R (R&R R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyRÈs    cCs;tdƒ}tdƒ}|jtjj|j||ƒdS(Ns<doc/>(RRbRRtNotSupportedErrt
importNode(R&RttestNametdoc1R    ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytcheck_import_documentÍs  cCs|jddƒdS(NittestImportDocumentShallow(R(R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyRÒscCs|jddƒdS(NittestImportDocumentDeep(R(R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyR ÕscCs8tƒ}tƒ}|jtjj|j|jdƒdS(Ni(R"RRbRRRRR(R&tsrcRÂ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestImportDocumentTypeShallowØs        cCs8tƒ}tƒ}|jtjj|j|jdƒdS(Ni(R"RRbRRRRR(R&R!RÂ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestImportDocumentTypeDeepÞs        cCsÆtdƒ}|jjdƒ}|j|dƒ|j|ƒ}|j|j|ƒ ƒ|j|j|ƒ ƒ|j|jdk|dƒ|j|j    j|j    ƒ|dƒ|j|j
|dƒdS(Ns<doc attr='value'/>Rÿs: ownerElement should be Nones: ownerDocument does not matchs.: cloned attribute must have specified == True( RR8RwtassertNotEqualR RR)RÚRiR!t    specified(R&RRR RÿR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytcheck_clone_attributeæs    cCs|jddƒdS(NittestCloneAttributeShallow(R&(R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyR'ôscCs|jddƒdS(NittestCloneAttributeDeep(R&(R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyR(÷scCsitdƒ}|j}|j|jtjƒ|j|ƒ}|j|j|jkoa|j    |j    kƒdS(Ns<?target data?><doc/>(
RRARºRÃRRÄRR)RÂR\(R&RRR RÇR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytcheck_clone_piús      cCs|jddƒdS(NittestClonePIShallow(R)(R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyR*scCs|jddƒdS(NittestClonePIDeep(R)(R&((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyR+scCsOtdƒ}|j}|j|jdƒƒ|j|jdƒƒ|jt|jƒdkok|jjdkdƒ|jƒ|jt|jƒdkoÊ|jjdkoÊ|j    |j
koÊ|j    j dkdƒ|j ƒtdƒ}|j}|j|jd    ƒƒ|jƒ|jt|jƒd
ko:|jjd
kd ƒ|j ƒdS( Ns<doc/>tfirsttsecondistestNormalize -- preparationit firstsecondstestNormalize -- resulttis*testNormalize -- single empty node removed( RR8RORNR)R?R<R@t    normalizeRARBR\R3(R&R RF((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testNormalizes,     
 
     
c CsCtdƒ}|j}|j|jdƒƒ|j|jdƒƒ|j|jdƒƒ|jt|jƒdko|jjdkdƒ|j    ƒ|jt|jƒdko.|jjdko.|j
j dko.|j
|j k    o.|j
j |j ko.|j
jdko.|j j|j
ko.|j j dkd    ƒ|jƒdS(
Ns<doc/>R,R-Rùis1testNormalizeCombineAndNextSibling -- preparationiR.s-testNormalizeCombinedAndNextSibling -- result(RR8RORNR=R)R?R<R@R0RAR\RBRERDR R3(R&R RF((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt"testNormalizeCombineAndNextSibling!s&     
c    Cstdƒ}|j}|j|jdƒƒ|j|jdƒƒ|jt|jƒdkok|jjdkdƒ|jƒ|jt|jƒdkoî|jjdkoî|j    j
dkoî|j    |j koî|j    j dkoî|j    jdkdƒ|jƒdS(Ns<doc/>R,R/is1testNormalizeDeleteWithPrevSibling -- preparationis,testNormalizeDeleteWithPrevSibling -- result(RR8RORNR)R?R<R@R0RAR\RBRER RDR3(R&R RF((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt"testNormalizeDeleteWithPrevSibling6s      
c    Cstdƒ}|j}|j|jdƒƒ|j|jdƒƒ|jt|jƒdkok|jjdkdƒ|jƒ|jt|jƒdkoî|jjdkoî|j    j
dkoî|j    |j koî|j    j dkoî|j    jdkdƒ|jƒdS(Ns<doc/>R/R-is1testNormalizeDeleteWithNextSibling -- preparationis,testNormalizeDeleteWithNextSibling -- result(RR8RORNR)R?R<R@R0RAR\RBRER RDR3(R&R RF((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt"testNormalizeDeleteWithNextSiblingHs      
c
Cs1tdƒ}|j}|j|jdƒƒ|j|jdƒƒ|j|jdƒƒ|jt|jƒdko|jjdkdƒ|j    ƒ|jt|jƒdko|jjdko|j
|j k    o|j
j |j ko|j
j dko|j j |j
ko|j j dkdƒ|jƒdS(Ns<doc/>RùR/is1testNormalizeDeleteWithTwoSiblings -- preparationis,testNormalizeDeleteWithTwoSiblings -- result(RR8ROR=RNR)R?R<R@R0RARBRERDR R3(R&R RF((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt)testNormalizeDeleteWithTwoNonTextSiblingsZs$     
c    CsEtdƒ}|j}|j|jdƒƒ|j|jdƒƒ|j|jdƒƒ|j|jdƒƒ|j|jdƒƒ|jt|jƒdko­|jjdkdƒ|jƒ|jt|jƒdko0|jjdko0|j    |j
ko0|j    j dko0|j    j dko0|j    jdkd    ƒ|jƒdS(
Ns<doc/>R/R-tfourthis,testNormalizeDeleteAndCombine -- preparationit secondfourths'testNormalizeDeleteAndCombine -- result(RR8RORNR)R?R<R@R0RARBR\RDR RER3(R&R RF((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestNormalizeDeleteAndCombinens&     
cCs tdƒ}|j}|jdj|jdƒƒ|jdj|jdƒƒ|jdjdj|jdƒƒ|jdj|jdƒƒ|j|jdƒƒ|jt|jƒdko}|jjdko}t|jdjƒd    ko}|jdjjd    ko}t|jdjƒdko}|jdjjdko}t|jdjdjƒd
ko}|jdjdjjd
kd ƒ|jƒ|jt|jƒd
koe|jjd
koet|jdjƒd
koe|jdjjd
koet|jdjƒd
koe|jdjjd
koet|jdjdjƒdkoe|jdjdjjdkd ƒ|j|jdjdj    d koÍ|jdjdjdj    dkoÍ|jdjdj    dkdƒ|j|jdjdj
dko÷|jdjdj |jdjdko÷|jdjdj dko÷|jdjdj
|jdjdko÷|jdjdj
dko÷|jdjdj |jdjdko÷|jdjdj dko÷|jdjdj
|jdjdkdƒ|j ƒdS(Ns)<doc><o><i/>t</o><o><o>t2</o>t3</o></doc>iR/txitx2tx3iiistestNormalize2 -- preparations$testNormalize2 -- childNodes lengthsttxtt2x2tt3x3s$testNormalize2 -- joined text fieldss"testNormalize2 -- sibling pointers(RR8R<RORNR)R?R@R0R\RER RDR3(R&R RF((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestNormalizeRecursionƒsX     $#
##$#cCsJtdƒ}|jjd}|j|jtjƒ|jƒ|jƒdS(Ns <o>text</o>i(    RR8R<RºRÃRt    TEXT_NODER0R3(R&R Ra((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestBug0777884Âs
 
cCsStdƒ}|j}d|jd_|jƒ|j|jdjdkdƒdS(Ns <o><i/>t</o>R/iiÿÿÿÿs)Final child's .nextSibling should be None(RR8R<RkR0R)RER (R&R R,((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestBug1433694Ês      
cCs™tdƒ}|j}|j\}}}|j|j|ko„|jdko„|j|ko„|j|ko„|jdko„|j|kdƒ|jƒdS(Ns<doc><?pi?>text?<elm/></doc>t testSiblings(RR8R<R)RERDR R3(R&R RFRÇRatelm((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyRCÒs     cCs¡tdƒ}|j}|jd}|j\}}|jd}|j|j|koŒ|j|koŒ|j|koŒ|j|koŒ|j|kdƒ|jƒdS(Ns3<doc><elm1><elm2/><elm2><elm3/></elm2></elm1></doc>it testParents(RR8R<R)RR3(R&R RFtelm1telm2atelm2btelm3((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyREàs          cCsÇtdƒ}|j}|d}|j|d|jdƒko²|jdƒdko²|jjdƒ|jdko²|jjdƒ|jdko²|jjdƒjjdƒdkdƒ|jƒdS(Ns<doc><e/><e/></doc>iistest NodeList.item()(RR<R)R R R3(R&R tchildrentdocelem((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestNodeListItemïs     
!c    Cs§ddlm}|jƒ}|jƒ|jdiƒ|jdƒ|jdiƒ|jdƒ|jdƒ|jdƒ|jdƒ|jƒ|j}|j    }|j
\}}}|j
d}|j |j dko=|j|ko=|j |ko=|j|ko=|j |ko=|jdko=|j dko=|jdkdƒ|j |j|ko’|j|ko’|j|ko’|j|ko’|j|kdƒ|jƒdS(    Niÿÿÿÿ(tpulldomR RatsubelmistestSAX2DOM - siblingsstestSAX2DOM - parents(txml.domRMtSAX2DOMt startDocumentt startElementt
characterst
endElementt endDocumenttdocumentR8R<R)RDR RERR3(    R&RMtsax2domR RFttext1RFttext2ttext3((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testSAX2DOMûs: 
 
         cCsstdƒ}|j|jƒdkoK|jdƒdkoK|jdƒdkdƒ|jttdƒ|jƒdS(    Ns<foo>&#x20ac;</foo>u$<?xml version="1.0" ?><foo>€</foo>sutf-8s4<?xml version="1.0" encoding="utf-8"?><foo>€</foo>s iso-8859-15s8<?xml version="1.0" encoding="iso-8859-15"?><foo>¤</foo>s"testEncodings - encoding EURO SIGNs0<français>Comment ça va ? Très bien ?</français>(RR)RCRbtUnicodeDecodeErrorR3(R&R ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testEncodingss        tUserDataHandlercBseZdZd„ZRS(icCs7|j||d|ƒ|j|ddƒd|_dS(Ni(t setUserDataR tcalled(R&t    operationtkeyR\R!tdst((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pythandle0s(t__name__t
__module__R`Rd(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyR^.scCs–tƒ}|jdƒ}|j|jdƒdkƒ|jdddƒ|j|jdƒdkƒ|jdddƒ|jdddƒ|j|jdƒdkƒ|j|jdƒdkƒ|jdddƒ|j|jdƒdkƒ|j|jdƒdkƒ|jƒ}|jdd|ƒ|jdƒ}|j|jop|jdƒdkop|jdƒdkƒ|j    ƒ|j    ƒ|j    ƒdS(NRªRLi R;i i(
RR=R)t getUserDataR R_R^RR`R3(R&Rtnthandlertc((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testUserData5s*     
 
cCsZ|jtjj|j|ddƒtdƒ}|jtjj|j|tjjdƒdS(Nshttp://xml.python.org/nss    xmlns:foos<doc/>RL(RbRRt NamespaceErrt
renameNodeRtWrongDocumentErrRÆ(R&R R,R    ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt checkRenameNodeSharedConstraintsMs
 
 c4Cs‰tdƒ}|j}|j}|jd}|j|tjjdƒ}|j|jdko |j    dko |j
dko |j tjjko |j dko |jdko |jdƒdko |jdƒj|ƒo |dj|ƒo |jj|ƒo |jj|ƒƒ|j|ddƒ}|j|jdko|j    dko|j
dko|j dko|j dko|jdko|jdƒdko|jdƒdko|jdƒj|ƒo|jddƒj|ƒo|dj|ƒo|d j|ƒƒ|j|ddƒ}|j|jdko,|j    dko,|j
d    ko,|j dko,|j d
ko,|jdko,|jdƒdko,|jdƒdko,|jdƒdko,|jddƒdko,|jdƒj|ƒo,|jdd    ƒj|ƒo,|dj|ƒo,|dj|ƒƒ|j|tjjd ƒ}|j|jd koE|j    d koE|j
dkoE|j tjjkoE|j dkoE|jdkoE|jdƒdkoE|jdƒdkoE|jdƒdkoE|jdƒdkoE|jddƒdkoE|jd ƒj|ƒoE|d j|ƒƒ|jtjj|j|dd ƒ|j||ƒ|jƒdS(Ns <doc a='v'/>RmRßtvshttp://xml.python.org/nsRjshttp://xml.python.org/ns2sp:dR tpRªtxmlns(shttp://xml.python.org/nsRj(shttp://xml.python.org/ns2R (RR8RdRmRRRÆR)RR[RR RœRžRjRwRÚR!RiRàRbRlRoR3(R&R RGtattrmapRÿ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestRenameAttributeUs„          
cCs/tdƒ}|j}|j|tjjdƒ}|j|jdko–|jdko–|j    dko–|j tjjko–|j dko–|j j|ƒƒ|j|ddƒ}|j|jdko|jdko|j    dko|j dko|j dko|j j|ƒƒ|j|ddƒ}|j|jdkoˆ|jdkoˆ|j    dkoˆ|j dkoˆ|j dkoˆ|j j|ƒƒ|j|tjjd    ƒ}|j|jd    ko |jd    ko |j    dko |j tjjko |j dko |j j|ƒƒ|j||ƒ|jƒdS(
Ns<doc/>Rmshttp://xml.python.org/nsRßshttp://xml.python.org/ns2sp:cRjRqR (RR8RmRRRÆR)RŸR[RR RœRžR!RÚRoR3(R&R RG((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestRenameElement¢s@     cCsltjjjƒjtjjddƒ}|jdƒ}|jtjj    |j
|tjjdƒ|j ƒdS(NRªtcommentRL( RRRRR RÆR RZRbRRmR3(R&R R,((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestRenameOtherÍs cCs­tdƒ}|j}|jd}|j|jtjƒ|j|dƒ|j|j    dƒƒ|j|dƒ|j
|j dƒ|ƒ|j|dƒ|j dƒ}|j|ƒ|j    d    ƒ}|j|ƒ|j|dƒ|j|d    ƒ|j d
ƒ}|j||ƒ|}|j|dƒ|j|d    ƒ|jd d ƒ}|j||ƒ|}|j|dƒ|j|d    ƒ|j|ƒ|j|d ƒ|j|d ƒdS(Ns <doc>a</doc>iRmRßtabRjtcabRvR R9tytztcabd(RR8R<RºRÃRR@R/RORNR>tcreateCDATASectionRZR=R_tcreateProcessingInstructiont removeChild(R&R RGRatsplitterRYR9((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt testWholeText×s8         cCsdtdƒ}|j}|j}|j|j|kdƒ|j||ƒ|j|j|kdƒdS(Ns<doc><e/></doc>sBefore replaceChild()sAfter replaceChild()(RR8RAR)RR_(R&R RGRª((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestPatch1094164ûs          cCs2d„}|ƒ\}}}}}|jdƒ}|j|dƒ|j|dƒ|jt|jƒdkƒ|ƒ\}}}}}|jdƒ}|j|dƒ|j|dƒ|jt|jƒdkƒ|ƒ\}}}}}|jdƒ}|j|dƒ|j|dko*t|jƒdkƒdS(    NcSsutdƒ}|j}|j}|j}|j}|j|jdƒ|ƒ|j|jdƒ|ƒ|||||fS(Ns<doc>a<e/>d</doc>RßRj(RR8RARBRER>RNR}(R RGRXRYR€((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pytsetups                 s new contentR iRyiR/i(treplaceWholeTextR/R)R?R<R (R&RƒR RGRXR€RYRa((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestReplaceWholeTexts     
cCs­tdƒ}|j}|j}|j|jdkoE|jtjj    kƒdj
ƒ}xQ|D]I}|j |ƒ}|j}|jt |dƒo¡|jtjj    kƒq\WdS(Nsl<!DOCTYPE doc [
  <!ENTITY e1 SYSTEM 'http://xml.python.org/e1'>
  <!ENTITY e2 SYSTEM 'http://xml.python.org/e2'>
  <!ATTLIST doc id   ID       #IMPLIED 
                ref  IDREF    #IMPLIED 
                refs IDREFS   #IMPLIED 
                enum (a|b)    #IMPLIED 
                ent  ENTITY   #IMPLIED 
                ents ENTITIES #IMPLIED 
                nm   NMTOKEN  #IMPLIED 
                nms  NMTOKENS #IMPLIED 
                text CDATA    #IMPLIED 
    >
]><doc id='name' notid='name' text='splat!' enum='b'       ref='name' refs='name name' ent='e1' ents='e1 e2'       nm='123' nms='123 abc' />s+id notid text enum ref refs ent ents nm nmsR( RR8t
schemaTypeR)RR t    namespaceRRRÆtsplitRwthasattr(R&R RGR.tnamesRRm((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestSchemaType!s                  cCs³tdƒ}|j}|jdƒ}|jdƒ}|j|jdƒdko_|j o_|j ƒ|jdƒ|j|j|jdƒƒož|jož|j ƒ|jdƒ|j|j|jdƒƒoô|j|jdƒƒoô|joô|jƒ|j    dƒ}d|_
|j |ƒ|j|jdƒdkoj|j|jdƒƒoj|j oj|joj|j ƒ|j |t jjdƒ|j|j|jdƒƒo«|jƒdS(Ns<doc a1='v' a2='w'/>RÜRÝRptwtan(RR8RwR)tgetElementByIdR R’R‘RÚtcreateAttributeRjtsetAttributeNodeRmRRRÆ(R&R RªRÜRÝta3((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestSetIdAttributeBs6     
            
     
     c Csúd}d}td|d|dƒ}|j}|j|dƒ}|j|dƒ}|j|jdƒdko|j o|j ƒ|j|dƒ|j|j|jdƒƒoÃ|joÃ|j ƒ|j|dƒ|j|j|jdƒƒo|j|jd    ƒƒo|jo|jƒ|j    |dƒ}d|_
|j |ƒ|j|j|jd    ƒƒƒ|j|j ƒ|j|jƒ|j|j ƒ|j|jdƒdkƒ|j |t jjd
ƒ|j|j|jd    ƒƒoò|jƒdS( Nshttp://xml.python.org/ns1shttp://xml.python.org/ns2s<doc xmlns:ns1='s ' xmlns:ns2='s' ns1:a1='v' ns2:a2='w'/>RÜRÝRpRŒR(RR8RàR)RŽR R’tsetIdAttributeNSRÚtcreateAttributeNSRjRRmRRRÆ(R&tNS1tNS2R RªRÜRÝR‘((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestSetIdAttributeNSas<    
          
     c Csôd}d}td|d|dƒ}|j}|j|dƒ}|j|dƒ}|j|jdƒdko|j o|j ƒ|j|ƒ|j|j|jdƒƒoÀ|joÀ|j ƒ|j|ƒ|j|j|jdƒƒo|j|jd    ƒƒo|jo|jƒ|j    |dƒ}d|_
|j |ƒ|j|j|jd    ƒƒƒ|j|j ƒ|j|jƒ|j|j ƒ|j|jdƒdkƒ|j |t jjd
ƒ|j|j|jd    ƒƒoì|jƒdS( Nshttp://xml.python.org/ns1shttp://xml.python.org/ns2s<doc xmlns:ns1='s ' xmlns:ns2='s' ns1:a1='v' ns2:a2='w'/>RÜRÝRpRŒR(RR8RàR)RŽR R’tsetIdAttributeNodeRÚR”RjRRmRRRÆ(R&R•R–R RªRÜRÝR‘((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestSetIdAttributeNode…s<    
            
     c Csútdƒ}tj|ƒ}tj|ƒ}||fg}xº|rõ|jƒ\}}|j|j|jko¹t|jƒt|jƒko¹|j    |j    ko¹|j
|ƒ o¹|j
|ƒ ƒ|jt j krqt|j ƒt|j ƒt|jƒt|jƒ|jt|j ƒt|j ƒkoBt|jƒt|jƒkƒx‘tt|jƒƒD]z}|jj|ƒ}|jj|ƒ}    |j|j|    jko¿|j|    jko¿|j|    jkƒ|j||    fƒq\Wx”tt|j ƒƒD]z}|j j|ƒ}
|j j|ƒ} |j|
j| jkoS|
j| jkoS|
j| jkƒ|j|
| fƒqðWn|jt jkr±|j|jj
|ƒoª|jj
|ƒƒnx>tt|jƒƒD]'}|j|j||j|fƒqÇWq<WdS(Ns<?xml version='1.0' encoding='us-ascii'?>
<!DOCTYPE doc PUBLIC 'http://xml.python.org/public' 'http://xml.python.org/system' [
  <!ELEMENT e EMPTY>
  <!ENTITY ent SYSTEM 'http://xml.python.org/entity'>
]><doc attr='value'> text
<?pi sample?> <!-- comment --> <e/> </doc>(RtpickletdumpstloadstpopR)RÃR?R<R[RÚRR RRRòR RRRRRt DOCUMENT_NODER!( R&R R-R    tstacktn1tn2Rùtno1tno2RóRô((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestPickledDocument©sJ         $cCs6tƒ}|j|jdƒƒ|jt|jƒdS(Nsfoo--bar(RRORZRbt
ValueErrorRC(R&R ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt(testSerializeCommentNodeWithDoubleHyphen×s    cCs>tdƒ}t|jƒƒ}|j|jtjjkƒdS(Ns$<element xmlns=''>
<foo/>
</element>(RRCR)RœRRRÆ(R&R R    ((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyttestEmptyXMLNSValueÜs ((~ReRfR)R/R5R9RJRVRXR]R^R`RhRnRoRpRrRuRzR‚RƒR…RŠRŒR“R”R•R–R—R˜R™R¢R¦R«R¯R°R±R²R³RµR¹R¼R½RÀRÈRÉRÊRËRÌRÎRÏRÐRÑRÒRÓRÔRÕRÖR×RØRÞRâRãRäRåRæRçRèRéRêRëRìRíRîRïRúRRRR
R RRRRRRR R"R#R&R'R(R)R*R+R1R2R3R4R5R8R?RARBRCRERLR[R]R^RkRoRtRuRwRR‚R…R‹R’R—R™R¤R¦R§(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyR#0sø                 +                                                                    
           &                                                
                                                                                                           
                                                                                       "                                                                                    ?                        #                M    +    
   $                !        $    $    .    cCsttƒdS(N(RR#(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt    test_mainãst__main__(RšRttest.test_supportRRRtunittestRORtxml.dom.minidomtxml.parsers.expatRRRRRR1R RRR"tTestCaseR#R¨Re(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_minidom.pyt<module>s*     "         ÿÿÿÿÿ¸