403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.146
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_minidom.cpython-315.opt-1.pyc
R
>lqj9(c��]PHs]PHs]PHs]QHGs]PHs]PHs]QHGsG	s	G
s
GsGsG
s
]QHGs]QH<Gs\O"QQQ5sQsQQ	ksQ
sQsQQ
\O.2s\Q6Xc\O42P!P!)�)�support)�parse�Attr�Node�Document�Element�parseString)�getDOMImplementation)�
ExpatErrorztest.xml�xmltestdata)�subdira<?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>c�:�[2OPQU2!)N�doc)r	�createDocument)�doctypes&�&C:\Python315\\Lib\test\test_minidom.py�create_doc_without_doctypers���!�0�0��u�g�F�F�c���[2OQPP2o,UOm,UOm[
OOOQPQ2oUOOOU2[
OOOQPQQ2oQUmQUmQUm
UOOOU2U!)rzmy-notationz"http://xml.python.org/notations/myz	my-entityz!http://xml.python.org/entities/myz1.0�utf-8�us-ascii)r	�createDocumentType�entities�_seq�	notations�xml�dom�minidom�Notation�append�Entity�version�encoding�actualEncoding)r�notation�entitys   r�create_nonempty_doctyper&s���"�$�7�7��t�T�J�G��G�����G�����w�w���'�'�
�t�(L�N�H������!�!�(�+�
�W�W�_�_�
#�
#�K��$G�$1�3�F��F�N��F�O�&�F������� � ��(��Nrc��[2o[U2oVOO]2mVO
O]2mU!�r)r&rr�item�
ownerDocumentr)rrs  r�create_doc_with_doctyper+/sG��%�'�G�
$�W�
-�C�-0�����!��*�.1�����1��+��Jrc�`�\sQs]6snQ�QksQsQsQsQsQs	Qs
QsQ	sQ
s
QsQs\O"Q
2Q2sQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Q s$Q!s%Q"s&Q#s'Q$s(Q%s)Q&s*Q's+Q(s,Q)s-Q*s.Q+s/Q,s0Q-s1Q.s2Q/s3Q0s4Q1s5Q2s6Q3s7Q4s8Q5s9Q6s:Q7s;Q8s<Q9s=Q:s>Q;s?Q<s@Q=sAQ>sBQ?sCQ@sDQAsEQBsFQCsGQDsHQEsIQFsJQGsKQHsLQIsMQJsNQKsOQLsPQMsQQNsRQOsSQPsTQQsUQRsVQSsWQTsXQUsYQVsZQWs[QXs\QYs]QZs^Q[s_Q\s`Q]saQ^sbQ_scQ`sdQaseQbsfQcsgQdshQesiQfsjQgskQhslQismQjsnQksoQlspQmsqQnsrQossQpstQqsuQrsvQsswQtsxQusyQvszQws{QxQy2s|Qzs}Q{s~Q|sQ}s�Q~s�Qs�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Us�P!)��MinidomTestc�*�UOV2P!�N)�
assertTrue)�self�test�testnames&&&r�confirm�MinidomTest.confirm7s������'rc�T�UOoUOV2QU8QU802P!)zlooking for z, found )�	wholeText�assertEqual)r1�node�s�ts&&& r�checkWholeText�MinidomTest.checkWholeText:s"���N�N������A�Q��B�Crc��[2oUOUO2UO[O2P!r/)r�assertFalse�async_�r1rs& r�testDocumentAsyncAttr�!MinidomTest.testDocumentAsyncAttr>s-���j��������$�������)rc���[[Q29^tt^2o[U2oUO2UO	U[
2PPP2P!)%fhP!9h)�rb��open�tstfiler�unlink�assertIsInstancer�r1�filers&  r�testParseFromBinaryFile�#MinidomTest.testParseFromBinaryFileCsB��
�'�4�
 �
 �D���+�C��J�J�L��!�!�#�x�0�!�
 �
 �
 �s�2A�A'	�A'	c���[[QQQ59^tt^2o[U2oUO2UO	U[
2PPP2P!)%fhP!9h)�rz
iso-8859-1)r"rFrKs&  r�testParseFromTextFile�!MinidomTest.testParseFromTextFileIsD��
�'�3��
6�
6�$���+�C��J�J�L��!�!�#�x�0�7�
6�
6�
6�s�2A�A)	�!A)	c��[QQQQ2oUOUOQ2UOUOQ2UOUOQ2UOUO
Q2P!)�qName�namespaceURI�	localName�prefix�rr8�namerUrWrV�r1�attrs& r�testAttrModeSetsParamsAsAttrs�)MinidomTest.testAttrModeSetsParamsAsAttrsOsd���G�^�[�(�C��������G�,�����*�*�N�;�������h�/��������5rc��[QQPQ2oUOUOQ2UOUOQ2UOUOQ2UOUO
UO2P!)rTrUrWrXrZs& r� testAttrModeSetsNonOptionalAttrs�,MinidomTest.testAttrModeSetsNonOptionalAttrsVsh���G�^�T�8�<��������G�,�����*�*�N�;�������h�/����������3rc��[[2oUOUOQ2UOOQ22UO2P!)�LI)rrHr8�getElementsByTagName�documentElementrI�r1rs& r�testGetElementsByTagName�$MinidomTest.testGetElementsByTagName]sD���G�n������1�1�$�7��#�#�8�8��>�	@��
�
�rc���[Q2oUOoUO]*oUOQ2oUO	VC2UO[
UO2]2UOUOO]2UOUO]*U2UOUOO]2U2UOUO]*U2UOUOO]2U2UOUOU2UOUOU2UOUO2Q2UOQ2oUO	UP2UO[
UO2]2UOUOO]2UOUO]*U2UOUOO]2U2UOUO]*U2UOUOO]2U2UOUOU2UOUOU2UOUO2Q2UOQ2oUO	VT2UO[
UO2]2UOUOO]2UOUO]*U2UOUOO]2U2UOUO]*U2UOUOO]2U2UOUOU2UOUOU2UOUO2Q2UO2P!)�<doc><foo/></doc>�elementz<doc><element/><foo/></doc>z%<doc><element/><foo/><element/></doc>�barz+<doc><element/><foo/><bar/><element/></doc>)rrd�
childNodes�
createElement�insertBeforer8�len�length�assertIsr)�
firstChild�	lastChild�toxml�previousSibling�nextSiblingrI)r1r�root�elem�nelem�nelem2s&     r�testInsertBefore�MinidomTest.testInsertBeforecs���-�.���"�"�����q�!���!�!�)�,�����%�&�����T�_�_�-�q�1�������/�/��3��
�
�d�o�o�a�(�%�0��
�
�d�o�o�*�*�1�-�u�5��
�
�d�o�o�a�(�$�/��
�
�d�o�o�*�*�1�-�t�4��
�
�d�o�o�u�-��
�
�d�n�n�d�+��������'D�E��!�!�)�,�����%��&�����T�_�_�-�q�1�������/�/��3��
�
�d�o�o�a�(�$�/��
�
�d�o�o�*�*�1�-�t�4��
�
�d�o�o�a�(�%�0��
�
�d�o�o�*�*�1�-�u�5��
�
�d�n�n�e�,��
�
�e�+�+�T�2��������'N�O��"�"�5�)�����&�(�����T�_�_�-�q�1�������/�/��3��
�
�d�o�o�a�(�&�1��
�
�d�o�o�*�*�1�-�v�6��
�
�d�o�o�a�(�%�0��
�
�d�o�o�*�*�1�-�u�5��
�
�f�(�(�%�0��
�
�e�+�+�V�4��������F�	H��
�
�rc�h�[Q2oUOQ2oUOQ2oUOQ2oUOQ2oUOOU2UO	2oUOU2UOU2UOU2VV4VV1!)�<doc/>�original�foork�bat)r�createTextNoderd�appendChild�createDocumentFragment�r1r�orig�c1�c2�c3�frags&      r�_create_fragment_test_nodes�'MinidomTest._create_fragment_test_nodes�s����(�#���!�!�*�-��
�
�
��
&��
�
�
��
&��
�
�
��
&�����'�'��-��)�)�+������������������"�"�*�*rc��UO2vqq4qVUOOUP2UO[	UOO
2V#VE1Q2UO
2UO
2UO2vqq4qVUOOVb2UO[	UOO
2V4VR1Q2UO
2UO
2P!)NzinsertBefore(<fragment>, None)zinsertBefore(<fragment>, orig))r�rdrn�assertTupleEqual�tuplerlrIr�s&      r�testInsertBeforeFragment�$MinidomTest.testInsertBeforeFragment�s���&*�&F�&F�&H�#��2�2����(�(��t�4����e�C�$7�$7�$B�$B�C���'�5�	7�	
���
��
�
��&*�&F�&F�&H�#��2�2����(�(��4����e�C�$7�$7�$B�$B�C��b�'�5�	7�	
���
��
�
�rc�v�[[2oUOOUO	Q22UOUOOP*OQ2UOUOOP*OQ2UO2P!)�Helloz#comment)
rrHrdr��
createCommentr8rl�nodeName�datarIres& r�testAppendChild�MinidomTest.testAppendChild�s����G�n�����'�'��(9�(9�'�(B�C�����,�,�7�7��;�D�D�j�Q�����,�,�7�7��;�@�@�'�J��
�
�r�cpuc	��`�[2nU1QkoUQ2oUQ2oUQ2oUOU]2V2*oVC*oUO[VV2QQV#U1QVV10Q5P!)c�J:`�ROPQP2oUOo]nU1Qko[O[QU29^tt^2[U2FD'oUO
Q2oUOU2SoJ)	PPP2R!)%fhR!9h)N�some_tagc�B:�R]*
n[OV2!��)�object�__getattribute__)r1r[�total_callss&&�r�getattribute_counter�\MinidomTest.testAppendChildNoQuadraticComplexity.<locals>.work.<locals>.getattribute_counter�s����q� ���.�.�t�:�:rr��child)rrdr�	swap_attrr�rangermr�)�nrrjr��_r�r��impls&     @�r�work�>MinidomTest.testAppendChildNoQuadraticComplexity.<locals>.work�s�����%�%�d�J��=�C��)�)�G��K�
;�
�"�"�7�,>�@T�U�U��q��A��-�-�g�6�E��'�'��.�#�G�"�V�
��V�U�
��s�8B�B"	�B"	�iig������	@z"Possible quadratic behavior: work=z ratios=)�msg)r	�
assertGreater�
assertLess�max)r1r��w1�w2�w3�r1�r2r�s&      @r�$testAppendChildNoQuadraticComplexity�0MinidomTest.testAppendChildNoQuadraticComplexity�s{���#�%��	�&�$�Z��
�$�Z��
�$�Z�����2�q�!�
�W��
�W�������K��4�R�2�X�J�h�r�u�g�N�	�	
rc��[Q2o[Q2oQUmUOU2UO	UOQ2Q2P!)r2�idztest-id)rr�value�setAttributeNoder8�getAttribute)r1rxr[s&  r�(testSetAttributeNodeWithoutOwnerDocument�4MinidomTest.testSetAttributeNodeWithoutOwnerDocument�sD���v����D�z����
����d�#�����*�*�4�0�)�<rc�
�UO2vqq4qVUOOU2UO[	UOO
2V#VE1Q2UO
2UO
2P!)zappendChild(<fragment>))r�rdr�r�r�rlrIr�s&      r�testAppendChildFragment�#MinidomTest.testAppendChildFragment�sk��&*�&F�&F�&H�#��2�2����'�'��-����e�C�$7�$7�$B�$B�C���'�.�	0�	
���
��
�
�rc�*�UO2vqq4qVUOOVb2UO2UO	[UOO2V4U1Q2UO2UO2P!)zreplaceChild(<fragment>))r�rd�replaceChildrIr�r�rlr�s&      r�testReplaceChildFragment�$MinidomTest.testReplaceChildFragment�sp��&*�&F�&F�&H�#��2�2����(�(��4����
����e�C�$7�$7�$B�$B�C�b�b�\�*�	,����
��
�
�rc���[2oUOQ2oUOQ2oUO[O
OUOU2UOU2UO[O
OUOUU2UO[O
OUOUU2UOoUO[O
OUOU2UO[O
OUOU2UOU2UO2P!)rj�text)rrmr��assertRaisesrr�HierarchyRequestErrr�rnr��
attributes�setNamedItem�setNamedItemNSrI)r1rrxr��nodemaps&    r�testLegalChildren�MinidomTest.testLegalChildren�s���j��� � ��+���!�!�&�)�����#�'�'�5�5�s����M���������#�'�'�5�5�s�7G�7G���	 ����#�'�'�5�5�s�7G�7G���	 ��/�/�����#�'�'�5�5�w�7K�7K��	 ����#�'�'�5�5�w�7M�7M��	 �	
������
�
�rc��[2oUOQ2oUOoQUQ$UO]2oUO	UO
UQ2UO	UOUQ2UOUOQQ2UOUOQQ2UO2UO2P!)rjrkr�z-NamedNodeMap.__setitem__() sets ownerDocumentz,NamedNodeMap.__setitem__() sets ownerElementz%NamedNodeMap.__setitem__() sets valuez)NamedNodeMap.__setitem__() sets nodeValue)rrmr�r)rqr*�ownerElementr8r��	nodeValuerI)r1rrx�attrs�as&    r�testNamedNodeMapSetItem�#MinidomTest.testNamedNodeMapSetItems����j��� � ��+��������e���J�J�q�M���
�
�a�o�o�s�?�	A��
�
�a�n�n�d�>�	@�������%�7�	9�������e�;�	=����
��
�
�rc��[[2oUOU2UOUO	Q22UOUOP*O2UO2P!)r�)rrHr0r�r�r?rlrIres& r�testNonZero�MinidomTest.testNonZerosT���G�n�����������)�)�%�0�1��������+�6�6�7��
�
�rc��[[2oUOUO2UO	2UOUO2P!r/)rrHr0rlrIr?res& r�
testUnlink�MinidomTest.testUnlinks6���G�n��������'��
�
��������(rc���[[29^tt^2oUOUO2PPP2UO	WO2P!)%fhK-9hr/)rrHr0rlr?res& r�testContext�MinidomTest.testContext s<��
�7�^�^�s��O�O�C�N�N�+��������(��^�s�A�A*	�#A*	c��[2oUOUOQ22UOUO2UO2P!��abc)rr�rmr0rdrIres& r�testElement�MinidomTest.testElement%s;���j������)�)�%�0�1�����+�+�,��
�
�rc�f�[Q2oUOoUOQQ2UOUO	2QQ2UOQ2oUO
UOUQ2UO
UOUOQ2UO2P!)�<abc/>�spam�jam2�<abc spam="jam2"/>�testAAAz!setAttribute() sets ownerDocumentz setAttribute() sets ownerElement)
rrd�setAttributer8rt�getAttributeNoderqr*r�rI)r1r�elr�s&   rr��MinidomTest.testAAA+s����(�#��
�
 �
 ��
�����'��������%9�9�E�����'���
�
�a�o�o�s�3�	5��
�
�a�n�n�c�&9�&9�2�	4��
�
�rc���[Q2oUOoUOQQ2UOQQ2UOUO	2QQ2UO2P!)r�r��jamr�r��testAAB)rrdr�r8rtrI�r1rr�s&  rr��MinidomTest.testAAB7sU���(�#��
�
 �
 ��
�����&�
�����'��������%9�9�E��
�
�rc�P�[2oUOUOQ22oUOQQ2UO	UOQ2Q2UO	UOQ*OQ2UOQQ2UO	UOQ2Q2UO	UOQ*OQ2UO	[UO2]2UOQQ2UO	UOQ2Q2UO	UOQ*OQ2UO	[UO2]2UO2P!)r��def�ghi�jkl�mno�newval)
rr�rmr�r8r�r�r�rorI�r1rr�s&  r�testAddAttr�MinidomTest.testAddAttr?sE���j������ 1� 1�%� 8�9��
���5�%�(�����+�+�E�2�E�:�����)�)�%�0�6�6��>�
���5�%�(�����+�+�E�2�E�:�����)�)�%�0�6�6��>�����U�-�-�.��2�
���5�(�+�����+�+�E�2�H�=�����)�)�%�0�6�6��A�����U�-�-�.��2��
�
�rc��[2oUOUOQ22oUO[	UO
2]2UO
QQ2UO[	UO
2]2UO
QUO[	UO
2]2UO2P!)r�r�r�)rr�rmr8ror�r�rIr�s&  r�testDeleteAttr�MinidomTest.testDeleteAttrTs����j������ 1� 1�%� 8�9������U�-�-�.��2�
���5�%�(�����U�-�-�.��2����U�#�����U�-�-�.��2��
�
�rc��[2oUOUOQ22oUOQQ2UO	[UO2]2UO[OOUOQ2UOQ2UO	[UO2]2UO2P!)r�r�r�r�)
rr�rmr�r8ror�r�rr�NotFoundErr�removeAttributerIr�s&  r�testRemoveAttr�MinidomTest.testRemoveAttr_s����j������ 1� 1�%� 8�9��
���5�%�(�����U�-�-�.��2����#�'�'�-�-�u�/D�/D�e�L�
���e�$�����U�-�-�.��2��
�
�rc���[2oUOUOQQ22oUOQQQ2UOQQQ2UO	[
OOUOQQ2UO[UO2]2UOQQ2UO[UO2]2UO2P!)�http://www.python.org�
python:abc�http://www.w3.org�xmlns:pythonzpython:abcattrr��abcattr)
rr��createElementNS�setAttributeNSr�rrr�removeAttributeNSr8ror�rIr�s&  r�testRemoveAttrNS�MinidomTest.testRemoveAttrNSjs����j������#�#�$;�\�J�L��
���0�.�0G�	I�
���4�6F��N����#�'�'�-�-�u�/F�/F��*�	,�����U�-�-�.��2�
��� 7��C�����U�-�-�.��2��
�
�rc� �[2oUOUOQ22oUOQQ2UO	[UO2]2UOQ2oUO[OOUOP2UOV2OU22UO	[UO2]2UOUOQ22[2oUOUOQ22oUOQ2oUO[OOUOU2UO2P!�r�r�r�)rr�rmr�r8ror�r�r�rrr�removeAttributeNoderq�assertIsNonerI)r1rr�r9�dom2�child2�node2s&      r�testRemoveAttributeNode�#MinidomTest.testRemoveAttributeNodexs-���j������ 1� 1�%� 8�9��
���6�5�)�����U�-�-�.��2��%�%�f�-�����#�'�'�-�-�u�/H�/H��	��
�
�d�5�5�d�;�<�����U�-�-�.��2����%�0�0��8�9��z���!�!�$�"4�"4�U�";�<���'�'��/�����#�'�'�-�-�v�/I�/I��	��
�
�rc��[2oUOUOQ22oUOQQ2UO	UOQ22P!r)rr�rmr�r0�hasAttributer�s&  r�testHasAttribute�MinidomTest.testHasAttribute�sI���j������ 1� 1�%� 8�9��
���6�5�)�����*�*�6�2�3rc�	�[Q2oUOoUOQQ2UO[	UO
2]2UOQQ2UO
Q2UO[	UO
2]2UOUO
Q*OQ2UOUO
Q*OQ2UOUOQ2Q2UOUOQ2O2QUO
Q$UO[	UO
2]2UOUO
Q*OQ2UOUO
Q*OQ2UOUOQ2Q2UOUO
Q*O2UOQQ2UO[	UO
2]2UOUO
Q*OQ2UOUO
Q*OQ2UOUOQ2Q2UOUO
Q*OQ2UOUO
Q*OQ2UOUOQ2Q2QUO
Q$UO[	UO
2]2UOUO
Q*OQ2UOUO
Q*OQ2UOUOQ2Q2UOUO
Q*OQ2UOUO
Q*OQ2UOUOQ2Q2UO2P!)r�r�r��bam�ham�spam2�bam2)rrdr�r8ror��setIdAttributer�r�r�r0r��isIdrIr�s&  r�testChangeAttr�MinidomTest.testChangeAttr�s5���(�#��
�
 �
 ��
�����&�����R�]�]�+�Q�/�
�����&�	���&�!�����R�]�]�+�Q�/�������v�.�4�4�e�<�������v�.�8�8�%�@��������0�%�8�����+�+�F�3�8�8�9� %��
�
�f������R�]�]�+�Q�/�������v�.�4�4�e�<�������v�.�8�8�%�@��������0�%�8�����
�
�f�-�2�2�3�
�����'�����R�]�]�+�Q�/�������v�.�4�4�e�<�������v�.�8�8�%�@��������0�%�8�������w�/�5�5�u�=�������w�/�9�9�5�A��������1�5�9�!'��
�
�g������R�]�]�+�Q�/�������v�.�4�4�e�<�������v�.�8�8�%�@��������0�%�8�������w�/�5�5�v�>�������w�/�9�9�6�B��������1�6�:��
�
�rc���[Q2oUOUO2UOoUO	QQ2UO[
UOO22]2UO	QQ2UOO2oUO[
U2]2UOQU2UOQU2P!)r�r�r�r�rk)r�r�)r�rk)
r�
addCleanuprIrdr�r8ror��items�assertIn)r1rr�r)s&   r�testGetAttrList�MinidomTest.testGetAttrList�s����(�#������
�
�#�
�
 �
 ��
�����&�����R�]�]�0�0�2�3�Q�7�
����u�%��
�
�#�#�%������U��Q�'��
�
�o�u�-��
�
�n�e�,rc��[Q2oUOUO2UOoUO	QQ2UO
O
2Tt,tFDp3OMJ	ooUOQU2UO	QQ2UO
O
2Tt,tFDp3OMJ	ooUOQU2UOQU2P!ttohttoh)r�r�r�r�rk)	rr(rIrdr�r��valuesr�r*)r1rr��xr.s&    r�testGetAttrValues�MinidomTest.testGetAttrValues�s����(�#������
�
�#�
�
 �
 ��
�����&�#%�=�=�#7�#7�#9�:�#9�a�'�'�#9��:��
�
�e�V�$�
����u�%�#%�=�=�#7�#7�#9�:�#9�a�'�'�#9��:��
�
�e�V�$��
�
�e�V�$��;��;s�!C6�8C;c��[2oUOUOQQ22oUOUO	Q2P2P!)rr�missing)rr�rr8r�r�s&  r�testGetAttribute�MinidomTest.testGetAttribute�sD���j�������� 7��F�H������+�+�I�6��;rc��[2oUOUOQQ22oUOQQQ2UO	UOQQ2Q2UO	UOQQ2P2UOUO
Q22oUO	UOQQ2P2P!)rrr	r
�python�otherr�r3)rr�rr
r8�getAttributeNSrm)r1rr�rs&   r�testGetAttributeNS�MinidomTest.testGetAttributeNS�s����j������#�#�$;�\�J�L��
���0�.�0G�	I�����-�-�.A�8�L�#�	%�����-�-�.A�7�K��	��"�"�3�#4�#4�U�#;�<������.�.�/F�	�R��	rc��P!r/��r1s&r�testGetAttributeNode� MinidomTest.testGetAttributeNode�s��Drc��Qo[U2oUOQQ2oUO[U2]2UOU]*OQ2UOU]*O
Q2UOU]*OQ2UOU]*OQ2UOU]*OQ2UO2P!)zZ<foo xmlns:minidom='http://pyxml.sf.net/minidom'>
        <minidom:myelem/>
        </foo>zhttp://pyxml.sf.net/minidom�myelemrzminidom:myelem)
r�getElementsByTagNameNSr8rorUrVrW�tagNamer�rI)r1�dr�elemss&   r�testGetElementsByTagNameNS�&MinidomTest.testGetElementsByTagNameNS�s������!�n���*�*�+H�+3�5������U��Q�'�����q��.�.�0M�N�����q��+�+�X�6�����q����)�4�����q��)�)�+;�<�����q��*�*�,<�=��
�
�rc�`�UOV#2oUO[U2]2P!r()rCr8ro)r1r�nsuri�lname�nodelists&&&& r�5get_empty_nodelist_from_elements_by_tagName_ns_helper�AMinidomTest.get_empty_nodelist_from_elements_by_tagName_ns_helper�s&���-�-�e�;������X���*rc��[Q2oUOUQQ2UOUQQ2UOUQQ2[Q2oUOUQQ2UOUQQ2UOUQQ	2P!)
r~z"http://xml.python.org/namespaces/a�	localname�*�splatz3<doc xmlns="http://xml.python.org/splat"><e/></doc>zhttp://xml.python.org/splatz	not-therez#http://somewhere.else.net/not-there�e)rrMrAs& r�+testGetEmptyNodeListFromElementsByTagNameNS�7MinidomTest.testGetEmptyNodeListFromElementsByTagNameNS�s����(�#���B�B��5�{�	D��B�B���g�	��B�B��5�s�	<��O�P���B�B��.��	=��B�B���k�	#��B�B��6��	=rc���[2oUOUOQ22o[U2o[	U2oUOV42UO
2P!r��rr�rm�repr�strr8rI�r1rr��string1�string2s&    r�testElementReprAndStr�!MinidomTest.testElementReprAndStr
�K���j��
�_�_�S�.�.�u�5�
6���r�(���b�'������*��
�
�rc���[2oUOUOQ22o[U2o[	U2oUOV42UO
2P!r�rWrZs&    r�testElementReprAndStrUnicode�(MinidomTest.testElementReprAndStrUnicoder_rc���[2oUOUOQQ22o[U2o[	U2oUOV42UO
QU2UO2P!)zhttp://www.slashdot.orgz	slash:abc)rr�rrXrYr8r*rIrZs&    r�testElementReprAndStrUnicodeNS�*MinidomTest.testElementReprAndStrUnicodeNSs`���j��
�_�_���� 9�;�G�I���r�(���b�'������*��
�
�k�7�+��
�
�rc���[2oUOUOQ22oUOQQ2oUO	[U2[
U22UO2P!)r�r�)rr�rmr�r8rYrXrI)r1rr�r9s&   r�testAttributeRepr�MinidomTest.testAttributeRepr$sS���j��
�_�_�S�.�.�u�5�
6�����u�e�,������T��D��J�/��
�
�rc��Qo[U2oUO2oUO2UOV2P!)z <?xml version="1.0" ?><a b="c"/>)rrtrIr8�r1rYr�domstrs&   r�testWriteXML�MinidomTest.testWriteXML+s3��0���#���������
�
������%rc��[2oUOUOQ22oUOUOQ22UOUOQ22oUOUOQ22UOUOQ22oUOUOQ22UOUOQ22oUOUOQ22UOUOQ22oUOUOQ	22UO	2oUO2UO
UQ
2P!)rx�&<>"�cr�
�crlf�
�lflf�

�ws�	

 zf<?xml version="1.0" ?><elem>&amp;&lt;&gt;"<cr>
</cr><crlf>
</crlf><lflf>

</lflf><ws>	

 </ws></elem>)rr�rmr�rtrIr8)r1rrxrprrrtrvrks&       r�test_toxml_quote_text�!MinidomTest.test_toxml_quote_text2s0���j�����s�0�0��8�9������+�+�F�3�4�
�
�
�c�/�/��5�
6��
���s�)�)�$�/�0����� 1� 1�&� 9�:������+�+�F�3�4����� 1� 1�&� 9�:������+�+�F�3�4�
�
�
�c�/�/��5�
6��
���s�)�)�)�4�5�������
�
������"*�	+rc��[2oUOUOQ22oUOQQ2UOQQ2UOQQ2UOQQ2UOQ	Q
2UOQQ2UO	2oUO2UO
UQ
2P!)rxr�rorprq�lf�
rrrsrtrurvrwz�<?xml version="1.0" ?><elem a="&amp;&lt;&gt;&quot;" cr="&#13;" lf="&#10;" crlf="&#13;&#10;" lflf="&#10;&#10;" ws="&#9;&#10;&#13; "/>)rr�rmr�rtrIr8)r1rrxrks&   r�test_toxml_quote_attrib�#MinidomTest.test_toxml_quote_attribGs����j�����s�0�0��8�9�����#�v�&����$��%����$��%����&�&�)����&�&�)����$�	�*�������
�
������")�	*rc��Qo[U2oUOQQ5oUO2UOV1O	QQ22P!)z"<?xml version="1.0" ?>
<a b="c"/>
rs)�newlr|)r�toprettyxmlrIr8�replacerjs&   r�testAltNewline�MinidomTest.testAltNewlineZsC��4���#������f��-���
�
��������T�6�!:�;rc���QoUO[Q2O2UQ*2UO[Q2O2UQ*2UO[Q2O2UQ*2UO[Q2O2UQ*2UO[Q	2O2UQ
*2P!)�<?xml version="1.0" ?>
�<B>A</B>z	<B>A</B>
z<C>A<B>A</B></C>z<C>
	A
	<B>A</B>
</C>
z<C><B>A</B>A</C>z<C>
	<B>A</B>
	A
</C>
z<C><B>A</B><B>A</B></C>z<C>
	<B>A</B>
	<B>A</B>
</C>
z<C><B>A</B>A<B>A</B></C>z <C>
	<B>A</B>
	A
	<B>A</B>
</C>
)r8rr�)r1�decls& r� test_toprettyxml_with_text_nodes�,MinidomTest.test_toprettyxml_with_text_nodesas���)������Z�0�<�<�>���,�	.�����%7�8�D�D�F�� >�>�	@�����%7�8�D�D�F�� >�>�	@�����%>�?�K�K�M�� E�E�	G�����%?�@�L�L�N�� J�J�	Lrc�2�[2oUOQ2oUOUOQ22UOUOQ22UOU2QoUO	UO2UQ*2P!)rx�TEXTr�z<elem>
	TEXT
	TEXT
</elem>
)rrmr�r�r8r�)r1rrxr�s&   r�)test_toprettyxml_with_adjacent_text_nodes�5MinidomTest.test_toprettyxml_with_adjacent_text_nodesos}���j��� � ��(������+�+�F�3�4�����+�+�F�3�4������)��������*�� C�C�	Erc�\�QFD�o[U2o[UO22oUOUOQ2]*O]*O2UOQ2]*O]*O22J�	P!)r��B)r�z<A><B>C</B></A>)rr�r8rcrlrt)r1rYrrs&   r�/test_toprettyxml_preserves_content_of_text_node�;MinidomTest.test_toprettyxml_preserves_content_of_text_nodezs���2�C��c�"�C��s���0�1�D�����(�(��-�a�0�;�;�A�>�D�D�F��)�)�#�.�q�1�<�<�Q�?�E�E�G�
I�3rc��[Q2oUOOoUOUOQ2UOUO
Q2UOUOQ2UOUO[O2UOUO2UOUO22UO[UO2]2UOUO2UOUO 2UOUO"2UOUO$[&O(O*2P!)�<e><?mypi 	
 data 	
 ?></e>�mypizdata 	
 )rrdrrr8�targetr�r��nodeTyper�PROCESSING_INSTRUCTION_NODErr�r?�
hasChildNodesrorlrsrVrUrr�EMPTY_NAMESPACE�r1r�pis&  r�testProcessingInstruction�%MinidomTest.testProcessingInstruction�s
���;�<��
�
 �
 �
+�
+��������F�+�������,�/�������f�-�������d�&F�&F�G����"�-�-�(�����)�)�+�,�����R�]�]�+�Q�/����"�-�-�(����"�,�,�'����"�,�,�'�������#�'�'�*A�*A�Brc��[Q2oUOOoUO[	UO
2[
UO
22P!)r�)rrdrrr8rYr�rXr�s&  r�testProcessingInstructionRepr�)MinidomTest.testProcessingInstructionRepr�s@���;�<��
�
 �
 �
+�
+������R�[�[�)�4����+<�=rc�J�[2oUOUO2UOQ2oUO	UOQ22UOoUO[U2[U22UOQ[U22P!)rxr�z<DOM Text node "'foo'">)
rr(rIrmr�r�rrr8rYrX)r1rrxr�s&   r�testTextRepr�MinidomTest.testTextRepr�sx���j������
�
�#�� � ��(������+�+�E�2�3�
�_�_������R��$�r�(�+����4�c�"�g�>rc��P!r/r=r>s&r�
testWriteText�MinidomTest.testWriteText�s��Trc��P!r/r=r>s&r�testDocumentElement�MinidomTest.testDocumentElement����4rc���[Q2oUOQ2oUO[OO
UOU2UO2UO2P!)r~�extra)rrmr�rrr�r�rI�r1rrxs&  r�testTooManyDocumentElements�'MinidomTest.testTooManyDocumentElements�sN���(�#��� � ��)�����#�'�'�5�5�s����M����
��
�
�rc��P!r/r=r>s&r�testCreateElementNS�MinidomTest.testCreateElementNS�r�rc��P!r/r=r>s&r�testCreateAttributeNS�!MinidomTest.testCreateAttributeNS�s��Trc��P!r/r=r>s&r�	testParse�MinidomTest.testParse�s��rc��P!r/r=r>s&r�testParseString�MinidomTest.testParseString�s��trc��P!r/r=r>s&r�testComment�MinidomTest.testComment�s��4rc��P!r/r=r>s&r�testAttrListItem�MinidomTest.testAttrListItem����rc��P!r/r=r>s&r�testAttrListItems�MinidomTest.testAttrListItems�s��rc��P!r/r=r>s&r�testAttrListItemNS�MinidomTest.testAttrListItemNS����$rc��P!r/r=r>s&r�testAttrListKeys�MinidomTest.testAttrListKeys�r�rc��P!r/r=r>s&r�testAttrListKeysNS�MinidomTest.testAttrListKeysNS�r�rc�<�[Q2oUOoUOoUOQ2oUO	Q2oUOUO
U22UO[OOUOQ2P!)z<doc a=''/>r�)rrdr�r��removeNamedItemr0�
isSameNoder�rrr�r1rrSr��a1�a2s&     r�testRemoveNamedItem�MinidomTest.testRemoveNamedItem�sw���-�(����������
�
�
��
$��
�
"�
"�3�
'������
�
�b�)�*����#�'�'�-�-�u�/D�/D�c�Jrc�B�[Q2oUOoUOoUOQQ2oUO	QQ2oUOUO
U22UO[OOUOQQ2P!)z.<doc xmlns:a='http://xml.python.org/' a:b=''/>zhttp://xml.python.org/�b)rrdr��getAttributeNodeNS�removeNamedItemNSr0r�r�rrrr�s&     r�testRemoveNamedItemNS�!MinidomTest.testRemoveNamedItemNS�s����J�K����������
�
!�
!�":�C�
@��
�
$�
$�%=�s�
C������
�
�b�)�*����#�'�'�-�-�u�/F�/F�2�C�	9rc��P!r/r=r>s&r�testAttrListValues�MinidomTest.testAttrListValues�r�rc��P!r/r=r>s&r�testAttrListLength�MinidomTest.testAttrListLength�r�rc��P!r/r=r>s&r�testAttrList__getitem__�#MinidomTest.testAttrList__getitem__����trc��P!r/r=r>s&r�testAttrList__setitem__�#MinidomTest.testAttrList__setitem__�r�rc��P!r/r=r>s&r�testSetAttrValueandNodeValue�(MinidomTest.testSetAttrValueandNodeValue����Drc��P!r/r=r>s&r�testParseElement�MinidomTest.testParseElement�r�rc��P!r/r=r>s&r�testParseAttributes�MinidomTest.testParseAttributes�r�rc��P!r/r=r>s&r�testParseElementNamespaces�&MinidomTest.testParseElementNamespaces�s��$rc��P!r/r=r>s&r�testParseAttributeNamespaces�(MinidomTest.testParseAttributeNamespaces�r�rc��P!r/r=r>s&r�testParseProcessingInstructions�+MinidomTest.testParseProcessingInstructions�s��trc��P!r/r=r>s&r�testChildNodes�MinidomTest.testChildNodes����drc��P!r/r=r>s&r�testFirstChild�MinidomTest.testFirstChild�rrc���[Q2oUOoUOUO22[Q2oUOoUO	UO22P!)rir~)rrdr0r�r?)r1rrr�doc2s&    r�testHasChildNodes�MinidomTest.testHasChildNodes�sY���-�.���!�!������)�)�+�,��8�$���#�#������+�+�-�.rc��UOoUOo[UO22o[UO22oUO2UO2UO	Vg2[[
U22FD�oUOU2o	UOU2o
UOV�2UO	U	OU
O2UO	U	OU
O2UO	U	OU
O2UO	U	OU
O2UOU
OU2J�	P!r/)r��list�keys�sortr8r�ror)�assertIsNotr�r�rUrVrqr�)r1�e1�e2r2�attrs1�attrs2�keys1�keys2�ir�r�s&&&&       r�!_testCloneElementCopiesAttributes�-MinidomTest._testCloneElementCopiesAttributes�s�����������V�[�[�]�#���V�[�[�]�#��
�
�
��
�
�
������&��s�5�z�"�A����Q��B����Q��B����R�$����R�X�X�r�x�x�0����R�\�\�2�<�<�8����R�_�_�R�_�_�=����R�\�\�2�<�<�8��M�M�"�/�/�2�.�#rc��[Q2oUOoUOU2oSOX4QS9%cQ9%fQ*2Q9UmUmUO
QQ2UO
QQ2V$1!)	z<doc attr='value'><foo/></doc>�testCloneElement�Deep�Shallow�MODIFIEDr[z	NEW VALUE�added�VALUE)rrd�	cloneNoderrDr�r�)r1�deeprrw�clones&&   r�_setupCloneElement�MinidomTest._setupCloneElements����:�;���"�"�����t�$���.�.��+�t����/K�/K�)�L�	N�(2�1���t�}����&�+�.����'�7�+��z�rc�Z�UO]2vqUO[UO2]2UOUOO]2UOUO2UOUO2Q2UO2P!)rz<doc attr="value"/>)	r"r8rorlrpr�
parentNodertrI�r1rr!s&  r�testCloneElementShallow�#MinidomTest.testCloneElementShallows���,�,�Q�/�
������U�-�-�.��2�����)�)�0�0�!�4����%�*�*�+��������(=�>��
�
�rc�Z�UO]2vqUO[UO2]2UOUOO]2UOUO2UOUO2Q2UO2P!)r�z<doc attr="value"><foo/></doc>)
r"r8rorlrprr%r0rtrIr&s&  r�testCloneElementDeep� MinidomTest.testCloneElementDeeps}���,�,�Q�/�
������U�-�-�.��2�����)�)�0�0�!�4����%�*�*�+�������
�'G�H��
�
�rc�d�[Q2oUO]2oUOUQ2P!)��<?xml version='1.0'?>
<!-- comment --><!DOCTYPE doc [
<!NOTATION notation SYSTEM 'http://xml.python.org/'>
]>
<doc attr='value'/>zFtestCloneDocumentShallow: shallow cloning of documents makes no sense!)rrr�r1rrs&  r�testCloneDocumentShallow�$MinidomTest.testCloneDocumentShallow"s8���*�+���}�}�Q������$�@�	Arc��[Q2oUO]2oSOUOU29%fUOU2Q2UO	[UO2[UO2Q2UO	UOO[OQ2UOUOOOU2Q2UOUOOUO2Q2UOd�UO	UOO[OQ2UOUOOOU22UOUOOUO22P!P!)r-z4testCloneDocumentDeep: document objects not distinctz8testCloneDocumentDeep: wrong number of Document childrenz:testCloneDocumentDeep: documentElement not an ELEMENT_NODEz@testCloneDocumentDeep: documentElement owner is not new documentz;testCloneDocumentDeep: documentElement should not be sharedz7testCloneDocumentDeep: doctype not a DOCUMENT_TYPE_NODE)rrr?r�r8rorlrdr�r�ELEMENT_NODEr0r*r�DOCUMENT_TYPE_NODEr.s&  r�testCloneDocumentDeep�!MinidomTest.testCloneDocumentDeep.sj���*�+���}�}�Q������#�.�.��.�F�F�$�/�/�#�2F�F�	H�����S�^�^�,�c�$�/�/�.B�J�	L�����-�-�6�6��8I�8I�L�	N�����,�,�:�:�E�E�d�K�N�	P�����,�,�7�7��8L�8L�M�M�	O��;�;�"����T�\�\�2�2�D�4K�4K�M�
O��O�O�D�L�L�6�6�A�A�$�G�H����S�[�[�3�3�D�L�L�A�B�#rc�t�[2oUO]2oSOUPI9%CcvUOUO6H9%CcTUOUO6H9%Cc2UO
UO
6H9%CcUOUO6H9%c�[UO2[UO26H9%c�UOO[UO22PI9%c�[UO2[UO26H9%cQUOO[UO22PI9%c[UO2]6H2[[UO22FCDdoUOOU2oUOOU2oSOUOU2%(9%c�UOU2%(9%c�UOUO6H9%c�UOUO6H9%c�UO
UO
6H9%c}UOUO6H9%c\UOUO6H9%c;UO UO 6H9%cUO"UO"6H2CJg	[[UO22FD�oUOOU2oUOOU2oSOUOU2%(9%czUOU2%(9%c\UOUO6H9%c;UO
UO
6H9%cUOUO6H2J�	P!r�)r&rr4r�rY�publicId�systemIdrorr)rrlr�r��notationNamer"r#r!)r1rr!r�se�ce�sn�cns&       r�testCloneDocumentTypeDeepOk�'MinidomTest.testCloneDocumentTypeDeepOkGss��)�+���!�!�!�$�����U�$�&�	/�	/��N�N�g�&6�&6�6�	/�	/��J�J�'�,�,�.�	/�	/��N�N�g�&6�&6�6�	/�	/��N�N�g�&6�&6�6�		/�	/�
����'�3�w�/?�/?�+@�@�	/�	/��N�N�'�'��E�N�N�(;�<��D�
	/�	/�����(�C��0A�0A�,B�B�	/�	/��O�O�(�(��U�_�_�)=�>�$�F�	/�	/���(�(�)�Q�.�		0��s�7�+�+�,�-�-�A��!�!�&�&�q�)�B����$�$�Q�'�B��L�L�b�m�m�B�/�/�1�1��]�]�2�.�.�1�1����r�{�{�2�1�1����2�?�?�:�1�1����r�{�{�2�	1�1�
���r�{�{�2�1�1����r�{�{�2�
1�1��)�)�R�->�->�>�1�1��
�
�b�j�j�0�
2�.��s�7�,�,�-�.�A��"�"�'�'��*�B����%�%�a�(�B��L�L�b�m�m�B�/�/�3�3��]�]�2�.�.�3�3����r�{�{�2�3�3����r�{�{�2�3�3����r�{�{�2�	
4�/rc�t�[2oUOO]2oUOU2P!r��r+rrr�r1rr!s&  r�testCloneDocumentTypeDeepNotOk�*MinidomTest.testCloneDocumentTypeDeepNotOki�,��%�'�����%�%�a�(�����%� rc���[2oUO]2oSOUPI9%Cc(UOUO6H9%CcUOUO6H9%c�UO
UO
6H9%c�UOUO6H9%c�[UO2]6H9%c�UOO]2PI9%c^[UO2]6H9%c>UOO]2PI9%c[UO2]6H2P!r()r&rr4r�rYr7r8rorr)rrl)r1rr!s&  r�testCloneDocumentTypeShallowOk�*MinidomTest.testCloneDocumentTypeShallowOkns>��)�+���!�!�!�$�����U�$�&�	/�	/��N�N�g�&6�&6�6�	/�	/��J�J�'�,�,�.�	/�	/��N�N�g�&6�&6�6�	/�	/��N�N�g�&6�&6�6�		/�	/�
����'�1�,�	/�	/��N�N�'�'��*�d�2�
	/�	/�����(�A�-�	/�	/��O�O�(�(��+�t�3�	/�	/���(�(�)�Q�.�		0rc�t�[2oUOO]2oUOU2P!r(rArBs&  r�!testCloneDocumentTypeShallowNotOk�-MinidomTest.testCloneDocumentTypeShallowNotOk|rErc��[Q2o[Q2oUO[OOUO
VA2P!)r~)rr�rr�NotSupportedErr�
importNode)r1r �testName�doc1rs&&&  r�check_import_document�!MinidomTest.check_import_document�s6���8�$���8�$�����#�'�'�1�1�4�?�?�D�Orc�,�UO]Q2P!)r�testImportDocumentShallow�rQr>s&rrT�%MinidomTest.testImportDocumentShallow�����"�"�1�&A�Brc�,�UO]Q2P!)r��testImportDocumentDeeprUr>s&rrY�"MinidomTest.testImportDocumentDeep�����"�"�1�&>�?rc��[2o[2oUO[OO
UOUO]2P!r(�r+rr�rrrMrNr�r1�srcr�s&  r�testImportDocumentTypeShallow�)MinidomTest.testImportDocumentTypeShallow��=��%�'��+�-�����#�'�'�1�1�6�3D�3D��+�+�q�	*rc��[2o[2oUO[OO
UOUO]2P!r�r]r^s&  r�testImportDocumentTypeDeep�&MinidomTest.testImportDocumentTypeDeep�rbrc��[Q2oUOOQ2oUOU2UO	U2oUOUO
U22UOUO
U22UOUOUQ*2UOUOO
UO2UQ*2UOUOUQ*2P!)z<doc attr='value'/>r[z: ownerElement should be Nonez: ownerDocument does not matchz.: cloned attribute must have specified == True)rrdr��assertIsNotNonerr?r�rr�r4r*�	specified)r1r rOrr[r!s&&&   r�check_clone_attribute�!MinidomTest.check_clone_attribute�s����/�0���"�"�3�3�F�;�����T�"����t�$������)�)�$�/�0��������/�0����%�,�,��:�:�	<����U�(�(�3�3�D�4F�4F�G��;�;�	=����U�_�_��K�K�	Mrc�,�UO]Q2P!)r�testCloneAttributeShallow�rir>s&rrl�%MinidomTest.testCloneAttributeShallow�rWrc�,�UO]Q2P!)r��testCloneAttributeDeeprmr>s&rrp�"MinidomTest.testCloneAttributeDeep�r[rc�>�[Q2oUOoUOUO[O
2UO
U2oSOUOUO6H9%cUOUO6H2P!)z<?target data?><doc/>)
rrrr8r�rr�rr4r�r�)r1r rOrr�r!s&&&   r�check_clone_pi�MinidomTest.check_clone_pi�ss���1�2��
�^�^��������d�&F�&F�G����T�"�����U�\�\�R�Y�Y�.�*�*��J�J�"�'�'�)�	+rc�,�UO]Q2P!)r�testClonePIShallow�rsr>s&rrv�MinidomTest.testClonePIShallow�s�����A�3�4rc�,�UO]Q2P!)r��testClonePIDeeprwr>s&rrz�MinidomTest.testClonePIDeep�s�����A�0�1rc�6�[OOOQO	22oQQ2oU2oUO
oUOQ*oUOQQU2U%c�UOP	Q5oUOUOOOQ2[OOOoUO
OQ*o	Lr[O UQP29^tt^2UOP	Q5oPPP2[OOO"oWOQ*o	UOUO$U2UOUO&Q2UOUO(Q2UO+UO,U2UO+UO.U	2P!)%fhK�9h)	u
            <?xml version="1.0" ?>
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                "http://www.w3.org/TR/html4/strict.dtd"
                [ <!ENTITY smile "☺"> ]
            >
            <doc>Don't let entities make you frown &smile;</doc>
        c�(`�\sQsQsnQsQsUsP!)�4MinidomTest.check_clone_node_entity.<locals>.Handler��c�D�VmV mV0mV@mVPmP!r/)�	operation�keyr�r_�dst�r1r�r�r�r_r�s&&&&&&r�handle�;MinidomTest.check_clone_node_entity.<locals>.Handler.handle�s��!*���� �	����r)r�r�r�r�r_)�__name__�
__module__�__qualname__�__firstlineno__r��__static_attributes__�__classdictcell__��
__classdict__s@r�Handlerr~�s����
�
rr��smiler�r�)r u%Don't let entities make you frown ☺r*)rrrr�striprr�setUserDatarr8rdrrr7�UserDataHandler�
NODE_IMPORTEDrr��NODE_CLONEDr�r�r�rqr_r�)
r1�clone_document�documentr��handlerrr%r!r�r�s
&&        r�check_clone_node_entity�#MinidomTest.check_clone_node_entity�s����7�7�?�?�.�.�0�
�E�G���	�	��)���"�"���!�!�'�*�����5�&�'�2���&�&�D�&�1�E����U�2�2�=�=�G�G�D�
F����/�/�=�=�I��-�-�(�(��1�C��"�"�7�O�T�B�B��)�)�t�)�4��C����/�/�;�;�I��.�.��)�C�����*�*�I�6�������e�,�������v�.��
�
�g�k�k�6�*��
�
�g�k�k�3�'�C�B�s�(H�H	�H	c�L�UOP
2UOP	2P!)F)r�r>s&r�testCloneNodeEntity�MinidomTest.testCloneNodeEntity�s���$�$�U�+��$�$�T�*rc���[Q2oUOoUOUOQ22UOUOQ22SO	[UO2]6H9%cUOO]6HQ2UO2SO	[UO2]6H9%c[UOO]6H9%c:UOUOI9%cUOOQ6HQ2UO2[Q2oUOoUOUOP22UO2SO	[UO2]6H9%cUOO]6HQ2UO2P!)r~�first�secondztestNormalize -- preparation�firstsecondztestNormalize -- resultz*testNormalize -- single empty node removed)
rrdr�r�r4rorlrp�	normalizerrrsr�rI�r1rrws&  r�
testNormalize�MinidomTest.testNormalize�s����(�#���"�"������+�+�G�4�5�����+�+�H�5�6����S����)�Q�.�0�0��O�O�*�*�a�/�.�	0�	�
�
�����S����)�Q�.�:�:��O�O�*�*�a�/�:�:��O�O�t�~�~�5�:�:��O�O�(�(�M�9�+�		-�
	�
�
���(�#���"�"������+�+�B�/�0��
�
�����S����)�Q�.�0�0��O�O�*�*�a�/�<�	>�	�
�
�rc��[Q2oUOoUOUOQ22UOUOQ22UOUO	Q22SO[
UO2]6H9%cUOO]6HQ2UO2SO[
UO2]6H9%c�UOO]6H9%c�UOOQ6H9%c�UOUOI9%c�UOOUOI9%ccUOOPI9%cCUOOUOI9%cUOOPIQ2UO2P!)r~r�r�rz1testNormalizeCombineAndNextSibling -- preparationr�z-testNormalizeCombinedAndNextSibling -- result)rrdr�r�rmr4rorlrpr�rrr�rsrvrurIr�s&  r�"testNormalizeCombineAndNextSibling�.MinidomTest.testNormalizeCombineAndNextSiblings����(�#���"�"������+�+�G�4�5�����+�+�H�5�6�����*�*�3�/�0����S����)�Q�.�0�0��O�O�*�*�a�/�C�	E�	�
�
�����S����)�Q�.�7�7��O�O�*�*�a�/�7�7��O�O�(�(�M�9�7�7��O�O�4�>�>�9�7�7��O�O�/�/�4�>�>�A�	7�7�
�O�O�3�3�t�;�7�7��N�N�2�2�d�o�o�E�
7�7��N�N�.�.�$�6�A�	C�	�
�
�rc��[Q2oUOoUOUOQ22UOUOP22SO	[UO2]6H9%cUOO]6HQ2UO2SO	[UO2]6H9%c�UOO]6H9%czUOOQ6H9%cYUOUOI9%c9UOOPI9%cUOOPIQ2UO2P!)r~r�z1testNormalizeDeleteWithPrevSibling -- preparationz,testNormalizeDeleteWithPrevSibling -- result�rrdr�r�r4rorlrpr�rrr�rsrvrurIr�s&  r�"testNormalizeDeleteWithPrevSibling�.MinidomTest.testNormalizeDeleteWithPrevSiblingsK���(�#���"�"������+�+�G�4�5�����+�+�B�/�0����S����)�Q�.�0�0��O�O�*�*�a�/�C�	E�	�
�
�����S����)�Q�.�<�<��O�O�*�*�a�/�<�<��O�O�(�(�G�3�<�<��O�O�t�~�~�5�<�<��O�O�/�/�4�7�	<�<�
�O�O�3�3�t�;�@�
	B�	�
�
�rc��[Q2oUOoUOUOP22UOUOQ22SO	[UO2]6H9%cUOO]6HQ2UO2SO	[UO2]6H9%c�UOO]6H9%czUOOQ6H9%cYUOUOI9%c9UOOPI9%cUOOPIQ2UO2P!)r~r�z1testNormalizeDeleteWithNextSibling -- preparationz,testNormalizeDeleteWithNextSibling -- resultr�r�s&  r�"testNormalizeDeleteWithNextSibling�.MinidomTest.testNormalizeDeleteWithNextSibling/sK���(�#���"�"������+�+�B�/�0�����+�+�H�5�6����S����)�Q�.�0�0��O�O�*�*�a�/�C�	E�	�
�
�����S����)�Q�.�<�<��O�O�*�*�a�/�<�<��O�O�(�(�H�4�<�<��O�O�t�~�~�5�<�<��O�O�/�/�4�7�	<�<�
�O�O�3�3�t�;�@�
	B�	�
�
�rc���[Q2oUOoUOUOQ22UOUO	P22UOUOQ22SO[
UO2]6H9%cUOO]6HQ2UO2SO[
UO2]6H9%c�UOO]6H9%c�UOUOI9%c�UOOUOI9%ccUOOPI9%cCUOOUOI9%cUOOPIQ2UO2P!)r~rz1testNormalizeDeleteWithTwoSiblings -- preparationz,testNormalizeDeleteWithTwoSiblings -- result)rrdr�rmr�r4rorlrpr�rrrsrvrurIr�s&  r�)testNormalizeDeleteWithTwoNonTextSiblings�5MinidomTest.testNormalizeDeleteWithTwoNonTextSiblingsAs����(�#���"�"������*�*�3�/�0�����+�+�B�/�0�����*�*�3�/�0����S����)�Q�.�0�0��O�O�*�*�a�/�C�	E�	�
�
�����S����)�Q�.�7�7��O�O�*�*�a�/�7�7��O�O�4�>�>�9�7�7��O�O�/�/�4�>�>�A�7�7��O�O�3�3�t�;�	7�7�
�N�N�2�2�d�o�o�E�7�7��N�N�.�.�$�6�@�	B�	�
�
�rc���[Q2oUOoUOUOP22UOUOQ22UOUOP22UOUOQ22UOUOP22SO	[UO2]6H9%cUOO]6HQ2UO2SO	[UO2]6H9%c�UOO]6H9%czUOUOI9%cZUOOQ6H9%c9UOOPI9%cUOOPIQ2UO2P!)r~r��fourthz,testNormalizeDeleteAndCombine -- preparation�secondfourthz'testNormalizeDeleteAndCombine -- result)rrdr�r�r4rorlrpr�rrrsr�rurvrIr�s&  r�testNormalizeDeleteAndCombine�)MinidomTest.testNormalizeDeleteAndCombineUs����(�#���"�"������+�+�B�/�0�����+�+�H�5�6�����+�+�B�/�0�����+�+�H�5�6�����+�+�B�/�0����S����)�Q�.�0�0��O�O�*�*�a�/�>�	@�	�
�
�����S����)�Q�.�8�8��O�O�*�*�a�/�8�8��O�O�t�~�~�5�8�8��O�O�(�(�N�:�8�8��O�O�3�3�t�;�	8�8�
�O�O�/�/�4�7�;�
	=�	�
�
�rc���[Q2oUOoUO]*OUO	P22UO]*OUO	Q22UO]*O]*OUO	Q22UO]*OUO	Q22UOUO	P22SO[
UO2]6H9%CcgUOO]6H9%CcE[
UO]*O2]6H9%CcUO]*OO]6H9%c�[
UO]*O2]6H9%c�UO]*OO]6H9%c~[
UO]*O]*O2]6H9%c<UO]*O]*OO]6HQ2UO2SO[
UO2]6H9%CcgUOO]6H9%CcE[
UO]*O2]6H9%CcUO]*OO]6H9%c�[
UO]*O2]6H9%c�UO]*OO]6H9%c~[
UO]*O]*O2]6H9%c<UO]*O]*OO]6HQ2SOUO]*O]*OQ6H9%c|UO]*O]*O]*OQ6H9%c2UO]*O]*OQ6HQ	2SOUO]*O]*OPI9%CcUO]*O]*OUO]*O]*I9%Cc�UO]*O]*OPI9%CcxUO]*O]*OUO]*O]*I9%CcUO]*O]*OPI9%c�UO]*O]*OUO]*O]*I9%c�UO]*O]*OPI9%cSUO]*O]*OUO]*O]*IQ
2UO2P!)z)<doc><o><i/>t</o><o><o>t2</o>t3</o></doc>r/�x2�x3ztestNormalize2 -- preparationz$testNormalize2 -- childNodes lengths�tx�t2x2�t3x3z$testNormalize2 -- joined text fieldsz"testNormalize2 -- sibling pointers)
rrdrlr�r�r4rorpr�r�rvrurIr�s&  r�testNormalizeRecursion�"MinidomTest.testNormalizeRecursionjs����#�$��"�"�"�������&�&�s�'9�'9�"�'=�>������&�&�s�'9�'9�#�'>�?������%�%�a�(�4�4�S�5G�5G��5M�N������&�&�s�'9�'9�$�'?�@�����+�+�B�/�0����S����)�Q�.�L�L��O�O�*�*�a�/�L�L������*�5�5�6�!�;�L�L��O�O�A�&�1�1�8�8�A�=�L�L������*�5�5�6�!�;�	L�L�
�O�O�A�&�1�1�8�8�A�=�L�L������*�5�5�a�8�C�C�D��I�
L�L��O�O�A�&�1�1�!�4�?�?�F�F�!�K�1�	3�	�
�
�����S����)�Q�.�L�L��O�O�*�*�a�/�L�L������*�5�5�6�!�;�L�L��O�O�A�&�1�1�8�8�A�=�L�L������*�5�5�6�!�;�	L�L�
�O�O�A�&�1�1�8�8�A�=�L�L������*�5�5�a�8�C�C�D��I�
L�L��O�O�A�&�1�1�!�4�?�?�F�F�!�K�8�	:�	
���T�_�_�Q�'�2�2�1�5�:�:�d�B�D�D��O�O�A�&�1�1�!�4�?�?��B�G�G�6�Q�D�D��O�O�A�&�1�1�!�4�9�9�V�C�8�	:�	
���T�_�_�Q�'�2�2�1�5�A�A�T�I�<�<��O�O�A�&�1�1�!�4�D�D��?�?�1�-�8�8��;�<�<�<��O�O�A�&�1�1�!�4�D�D��L�<�<��O�O�A�&�1�1�!�4�@�@��?�?�1�-�8�8��;�<�	<�<��O�O�A�&�1�1�!�4�@�@�D�H�
<�<��O�O�A�&�1�1�!�4�D�D��?�?�1�-�8�8��;�<�<�<��O�O�A�&�1�1�!�4�D�D��L�<�<��O�O�A�&�1�1�!�4�@�@��?�?�1�-�8�8��;�<�6�	8�	�
�
�rc���[Q2oUOO]*oUOUO[
O2UO2UO2P!)z<o>text</o>)	rrdrlr8r�r�	TEXT_NODEr�rI)r1rr�s&  r�testBug0777884�MinidomTest.testBug0777884�sM���-�(���"�"�-�-�a�0�����������7������
�
�rc���[Q2oUOoPUO]*mUO	2UOUOP*OQ2P!)z<o><i/>t</o>z)Final child's .nextSibling should be None)rrdrlr�r�rrv�r1rr9s&  r�testBug1433694�MinidomTest.testBug1433694�sU���.�)���"�"��')������$��������$�/�/�"�-�9�9�@�	Brc��[Q2oUOoUOvq4oSOUOUI9%cgUO
PI9%cQUOUI9%c;UO
UI9%c%UOPI9%cUO
UIQ2UO
2P!)z<doc><?pi?>text?<elm/></doc>�testSiblings)rrdrlr4rvrurI)r1rrwr�r��elms&     rr��MinidomTest.testSiblings�s����8�9���"�"���/�/���3����R�^�^�t�+�,�,��"�"�d�*�,�,�� � �C�'�,�,��$�$��*�,�,����4�'�	,�,�
�#�#�t�+�^�	=�	�
�
�rc��[Q2oUOoUO]*oUOvqEUO]*oSOUOUI9%cQUOUI9%c;UOUI9%c%UOUI9%cUOUIQ2UO2P!)z3<doc><elm1><elm2/><elm2><elm3/></elm2></elm1></doc>�testParents)rrdrlr4r%rI)r1rrw�elm1�elm2a�elm2b�elm3s&      rr��MinidomTest.testParents�s����A�C���"�"�����q�!�����������"�����T�_�_��+�)�)����4�'�)�)�� � �D�(�)�)�� � �D�(�)�)����5�(�-�		9�
	�
�
�rc�F�[Q2oUOoU]*oSOU]*UO]2I9%c�UO]2PI9%c�UOO]2UO]*I9%cmUOO]2UO]*I9%c7UOO]2OO]2PIQ2UO	2P!)z<doc><e/><e/></doc>ztest NodeList.item())rrlr4r)rI)r1r�children�docelems&   r�testNodeListItem�MinidomTest.testNodeListItem�s���/�0���>�>���1�+�����X�a�[�H�M�M�!�$4�4�J�J��M�M�!�$��,�J�J��&�&�+�+�A�.�'�2D�2D�Q�2G�G�J�J��&�&�+�+�A�.�'�2D�2D�Q�2G�G�J�J��&�&�+�+�A�.�9�9�>�>�q�A�T�I�&�	(�	�
�
�rc�8�[Q2oUOUO2Q2UOUOQ2Q2UOUOQ2Q2UOUOQ2Q2UOUOQ2Q	OQ22UO	[
[129^tt^2[Q
2PPP2UO2P!)%fhK"9h)�<foo>&#x20ac;</foo>�$<?xml version="1.0" ?><foo>€</foo>rs4<?xml version="1.0" encoding="utf-8"?><foo>€</foo>ziso-8859-15s8<?xml version="1.0" encoding="iso-8859-15"?><foo>�</foo>rs;<?xml version="1.0" encoding="us-ascii"?><foo>&#8364;</foo>zutf-16u5<?xml version="1.0" encoding="utf-16"?><foo>€</foo>s0<fran�ais>Comment �a va ? Tr�s bien ?</fran�ais>)rr8rt�encoder��UnicodeDecodeErrorr
rIrAs& r�
testEncodings�MinidomTest.testEncodings�s����/�0���������B�	D�������7�+�L�	N�������=�1�J�	L�������:�.�J�	L�������8�,�
 � &��x� 0�	2��
�
� 2�J�?�
@�
@��O�
�A�
	�
�
��A�
@�s�#D	�	D	�D	c��[Q2oUOUO2Q2UOUOPQ5Q2UOUOP	Q5Q2UOUOP
Q5Q2UOUOQP	2Q2UO2P!)r�r�)�
standaloneu4<?xml version="1.0" standalone="yes"?><foo>€</foo>u3<?xml version="1.0" standalone="no"?><foo>€</foo>rsE<?xml version="1.0" encoding="utf-8" standalone="yes"?><foo>€</foo>)rr8rtrIrAs& r�testStandalone�MinidomTest.testStandalone�s����/�0���������B�	D�������d��3�B�	D�������d��3�E�	G�������e��4�D�	F�������7�D�1�
'�	(�	�
�
�rc�,`�\sQsQsn]sQsQsUsP!)�MinidomTest.UserDataHandleri	c�n�UOV#]*U2UOUPP2]UmP!r�)r��calledr�s&&&&&&rr��"MinidomTest.UserDataHandler.handles+���O�O�C���4�0��O�O�C��t�,��D�Kr)r�)r�r�r�r�r�r�r�r�r�s@rr�r�	s������	�	rr�c���[2oUOQ2oUOUOQ22UO	QPP2UOUOQ22UO	Q]]2UO	Q]
]
2UOUOQ2]2UOUOQ2]
2UO	QPP2UOUOQ22UOUOQ2]
2UO
2oUO	Q]U2UO]2oSOUO9%c0UOQ2PI9%cUOQ2]
6H2UO2UO2UO2P!)rSr�rk)rrmr�getUserDatar�r8r�rr4r�rI)r1rr�r��cs&    r�testUserData�MinidomTest.testUserDatasy���j�����c�"�����!�-�-��.�/�	�
�
�e�T�4�(����!�-�-��.�/�	�
�
�e�R��$�	�
�
�e�R��$�������u�-�r�2�������u�-�r�2�	�
�
�e�T�4�(����!�-�-��.�/�������u�-�r�2��&�&�(��	�
�
�e�R��)�
�K�K��N�����W�^�^�/�/��M�M�%�(�D�0�/�/��M�M�%�(�B�.�	0�	
���
�	���
��
�
�rc�*�UO[OOUOUQQ2[Q2oUO[OOUOU[OOQ2P!)�http://xml.python.org/nsz	xmlns:foor~r�)r�rr�NamespaceErr�
renameNoder�WrongDocumentErrr�)r1rr9rs&&& r� checkRenameNodeSharedConstraints�,MinidomTest.checkRenameNodeSharedConstraints(se�����#�'�'�.�.�����4�k�	C��8�$�����#�'�'�2�2�D�O�O�T��'�'�1�1�5�	:rc�
�[Q2oUOoUOoUOQ*oUOU[O
OQ2oSOUOQ6H9%Cc,UOQ6H9%CcUOPI9%c�UO[O
O6H9%c�UOPI9%c�UOQ6H9%c�UOQ2PI9%c�UOQ2OU29%c_UQ*OU29%c?UO OU29%cUO"OU22UOUQQ2oSOUOQ6H9%Cc4UOQ6H9%CcUOQ6H9%CcUOQ6H9%c�UOPI9%c�UOQ6H9%c�UOQ2PI9%c�UOQ2PI9%c�UOQ2OU29%cbUO%QQ2OU29%c9UQ*OU29%cUQ*OU22UOUQQ2oSOUOQ6H9%CcnUOQ6H9%CcVUOQ6H9%Cc>UOQ6H9%Cc&UOQ	6H9%CcUOQ6H9%c�UOQ2PI9%c�UOQ2PI9%c�UOQ2PI9%c�UO%QQ2PI9%c�UOQ2OU29%cbUO%QQ2OU29%c9UQ*OU29%cUQ
*OU22UOU[O
OQ
2oSOUOQ
6H9%CcTUOQ
6H9%Cc<UOPI9%Cc%UO[O
O6H9%c�UOPI9%c�UOQ6H9%c�UOQ2PI9%c�UOQ2PI9%c�UOQ2PI9%cxUOQ2PI9%c]UO%QQ2PI9%cAUOQ
2OU29%cUQ
*OU22UO'[O
O(UOUQQ2UO+V2UO-2P!)z<doc a='v'/>r�r��vr�r��http://xml.python.org/ns2zp:drE�prS�xmlns)r�r�)r�rE)rrdr�r�rrr�r4rYr�rVrUrWr�r�r�r*r�r�r�r�r�rI)r1rrx�attrmapr[s&    r�testRenameAttribute�MinidomTest.testRenameAttribute0s����.�)���"�"���/�/�����s�#���~�~�d�C�G�G�$;�$;�S�A�����T�Y�Y�#�%�
7�
7��M�M�S�(�
7�
7��N�N�d�*�
7�
7��%�%����)@�)@�@�
7�
7��K�K�4�'�	
7�
7�
�J�J�#�%�
7�
7��)�)�#�.�$�6�
7�
7��)�)�#�.�9�9�$�?�
7�
7��C�L�+�+�D�1�
7�
7��&�&�1�1�#�6�
7�
7��%�%�0�0��6�
	8��~�~�d�$>��D�����T�Y�Y�#�%�P�P��M�M�S�(�P�P��N�N�c�)�P�P��%�%�)C�C�P�P��K�K�4�'�	P�P�
�J�J�#�%�P�P��)�)�#�.�$�6�
P�P��)�)�#�.�$�6�P�P��)�)�#�.�9�9�$�?�P�P��+�+�.��5�5?�Z��5E�P�P��C�L�+�+�D�1�P�P��=�>�I�I�$�O�	Q��~�~�d�$?��G�����T�Y�Y�%�'�Q�Q��M�M�U�*�Q�Q��N�N�c�)�Q�Q��%�%�)D�D�Q�Q��K�K�3�&�	Q�Q�
�J�J�#�%�Q�Q��)�)�#�.�$�6�
Q�Q��)�)�#�.�$�6�Q�Q��)�)�#�.�$�6�Q�Q��+�+�.��5�8<�=�Q�Q��)�)�%�0�;�;�D�A�Q�Q��+�+�/��6�6@�j��6F�Q�Q��E�N�-�-�d�3�Q�Q��>�?�J�J�4�P�	R�$�~�~�d�C�G�G�$;�$;�S�A�����T�Y�Y�#�%�
2�
2��M�M�S�(�
2�
2��N�N�d�*�
2�
2��%�%����)@�)@�@�
2�
2��K�K�4�'�	
2�
2�
�J�J�#�%�
2�
2��)�)�#�.�$�6�

2�
2��)�)�#�.�$�6�
2�
2��)�)�#�.�$�6�
2�
2��)�)�%�0�D�8�
2�
2��+�+�.��5�8<�=�
2�
2��)�)�#�.�9�9�$�?�
2�
2��C�L�+�+�D�1�
	3�	
���#�'�'�.�.�����4�g�	?��-�-�c�8��
�
�rc��[Q2oUOoUOU[OO
Q2oSO
UOQ6H9%c�UOQ6H9%cwUOPI9%caUO[OO
6H9%c2UOPI9%cUOOU22UOUQQ2oSO
UOQ6H9%cwUOQ6H9%c`UOQ6H9%cIUOQ6H9%c2UOPI9%cUOOU22UOUQQ2oSO
UOQ6H9%cxUOQ6H9%caUOQ6H9%cJUOQ6H9%c3UOQ6H9%cUOOU22UOU[OO
Q2oSO
UOQ6H9%c�UOQ6H9%cwUOPI9%caUO[OO
6H9%c2UOPI9%cUOOU22UOV2UO2P!)	r~r�r�r�r�zp:cr�r�rE)rrdr�rrr�r4rDr�rVrUrWr*r�r�rIr�s&  r�testRenameElement�MinidomTest.testRenameElement}s���(�#���"�"���~�~�d�C�G�G�$;�$;�S�A�����T�\�\�S�(�7�7��M�M�S�(�7�7��N�N�d�*�7�7��%�%����)@�)@�@�7�7��K�K�4�'�	7�7�
�&�&�1�1�#�6�	8��~�~�d�$>��D�����T�\�\�S�(�7�7��M�M�S�(�7�7��N�N�c�)�7�7��%�%�)C�C�7�7��K�K�4�'�	7�7�
�&�&�1�1�#�6�	8��~�~�d�$?��G�����T�\�\�U�*�7�7��M�M�U�*�7�7��N�N�c�)�7�7��%�%�)D�D�7�7��K�K�3�&�	7�7�
�&�&�1�1�#�6�	8��~�~�d�C�G�G�$;�$;�S�A�����T�\�\�S�(�7�7��M�M�S�(�7�7��N�N�d�*�7�7��%�%����)@�)@�@�7�7��K�K�4�'�	7�7�
�&�&�1�1�#�6�	8�	
�-�-�c�8��
�
�rc��[OOO2O	[OO
QP2oUO
Q2oUO[OOUOU[OO
Q2UO2P!)rS�commentr�)rrrr	rr�r�r�rMr�rIr�s&  r�testRenameOther�MinidomTest.testRenameOther�s����g�g�o�o�2�2�4�C�C��G�G�#�#�S�$�0��� � ��+�����#�'�'�1�1�3�>�>�4��'�'�1�1�5�	:��
�
�rc��[Q2oUOoUO]*oUOUO[
O2UOUQ2UOUOQ22UOUQ2UOUOQ2U2UOUQ2UOQ2oUOU2UOQ2oUOU2UOUQ2UOUQ2UOQ2oUOVd2SoUOUQ2UOUQ2UOQ	Q
2oUOVd2SoUOUQ2UOUQ2UO!U2UOUQ2UOUQ2P!)z<doc>a</doc>r�r��abr��cabrrEr/�y�z�cabd)rrdrlr8r�rr�r<r�r�rn�createCDATASectionr�rmr��createProcessingInstruction�removeChild)r1rrxr��splitter�text2r/s&      r�
testWholeText�MinidomTest.testWholeText�s����.�)���"�"�����q�!�����������7����D�#�&�����+�+�C�0�1����D�$�'����#�0�0��5�t�<����D�%�(��$�$�Y�/������"��"�"�3�'����������D�%�(����E�3�'����c�"�����!�&������D�%�(����E�3�'��+�+�C��5�����!�&������D�%�(����E�3�'�����"����D�&�)����E�6�*rc���[Q2oUOoUOoUOUOUQ2UOV32UOUOUQ2P!)z<doc><e/></doc>zBefore replaceChild()zAfter replaceChild())rrdrrrqr%r�)r1rrxrSs&   r�testPatch1094164�MinidomTest.testPatch1094164�sY���+�,���"�"���O�O���
�
�a�l�l�D�*A�B����!���
�
�a�l�l�D�*@�Arc�d�QoU2vq#qEoUOQ2oUOUQ2UOUQ2UO[UO2]2U2vq#qEoUOQ2oUOUQ2UOUQ2UO[UO2]2U2vq#qEoUOP2oUOUQ2SOUPI9%c[UO2]6H2P!)c��[Q2oUOoUOoUOoUOoUOUO
Q2U2UOUOQ2U2VV$U1!)z<doc>a<e/>d</doc>r�r�)rrdrrrsrvrnr�r	)rrx�text1r
rs     r�setup�/MinidomTest.testReplaceWholeText.<locals>.setup�sx���1�2�C��&�&�D��O�O�E��N�N�E��(�(�H����c�0�0��5�x�@����c�4�4�S�9�5�A��e�u�4�4rznew contentrEr)�replaceWholeTextr<r8rorlr4)r1rrrxrrr
r�s&       r�testReplaceWholeText� MinidomTest.testReplaceWholeText�s��	5�-2�G�)��5�E��%�%�m�4�����D�-�0����E�3�'�����T�_�_�-�q�1�,1�G�)��5�E��%�%�m�4�����D�-�0����E�5�)�����T�_�_�-�q�1�,1�G�)��5�E��%�%�b�)�����E�3�'����T�T�\�.�.�����(�A�-�	/rc���[Q2oUOoUOoSOUOPI9%c(UO
[OO6H2QO2oSFDjoUOU2oUOoSO[UQ29%c(UO
[OO6H2Jl	P!)al<!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' />z+id notid text enum ref refs ent ents nm nmsrY)rrd�
schemaTyper4rY�	namespacerrr��splitr��hasattr)r1rrxr;�namesrYr�s&      r�testSchemaType�MinidomTest.testSchemaType�s����
/�0��"�"�"��

�O�O�����Q�V�V�t�^�;�;��K�K�3�7�7�#:�#:�:�	<�=�C�C�E���D��%�%�d�+�A����A��L�L���F�+�?�?����s�w�w�'>�'>�>�
@�rc�j�[Q2oUOoUOQ2oUOQ2oSOUO	Q2PI9%c+UO
%(9%cUO
%(2UO
Q2SOUOUO	Q229%c&UO
9%cUO
%(2UO
Q2SOUOUO	Q229%cIUOUO	Q229%c!UO
9%c
UO
2UOQ2oQUm	UOU2SOUO	Q2PI9%cgUOUO	Q229%c?UO
%(9%c&UO
9%cUO
%(2UOU[OOQ2SOUOUO	Q229%c
UO
2P!)z<doc a1='v' a2='w'/>r�r�r��w�an)rrdr�r4�getElementByIdr$r#r��createAttributer�r�r�rrr�)r1rrSr�r��a3s&     r�testSetIdAttribute�MinidomTest.testSetIdAttributes9���0�1������
�
�
��
%��
�
�
��
%�����S�'�'��,��4� � ����K� � ����K�	!�	
��������Q�\�\�#�"4�"4�S�"9�:� � ��G�G� � ����K�	!�	
��������Q�\�\�#�"4�"4�S�"9�:����L�L��!3�!3�C�!8�9����G�G����G�G�	�
�
 �
 ��
&�����	���2�����S�'�'��,��4� � ��L�L��!3�!3�C�!8�9� � ����K� � ��G�G� � ����K�		!�	���r�3�7�7�2�2�D�9����Q�\�\�#�"4�"4�S�"9�:����G�G�	rc���QoQo[QU*Q*U*Q*2oUOoUOUQ2oUOUQ2oSOUO	Q2PI9%c+UO
%(9%cUO
%(2UO
UQ2SOUOUO	Q229%c&UO
9%cUO
%(2UO
UQ2SOUOUO	Q229%cIUOUO	Q229%c!UO
9%c
UO
2UOUQ2oQUm	UOU2UOUOUO	Q222UOUO
2UOUO
2UOUO
2UOUO	Q22UOU[O O"Q	2SOUOUO	Q229%c
UO
2P!�
zhttp://xml.python.org/ns1r�z<doc xmlns:ns1='z
' xmlns:ns2='z' ns1:a1='v' ns2:a2='w'/>r�r�r�r$r%)rrdr�r4r&r$�setIdAttributeNSr��createAttributeNSr�r�r0r?rr�rrr��r1�NS1�NS2rrSr�r�r(s&       r�testSetIdAttributeNS� MinidomTest.testSetIdAttributeNS<sh��)��)���)�+.�/�2)�)�+.�/�25�5�6��
����
�
!�
!�#�t�
,��
�
!�
!�#�t�
,�����S�'�'��,��4� � ����K� � ����K�	!�	
���3��%����Q�\�\�#�"4�"4�S�"9�:� � ��G�G� � ����K�	!�	
���3��%����Q�\�\�#�"4�"4�S�"9�:����L�L��!3�!3�C�!8�9����G�G����G�G�	�
�
"�
"�3��
-�����	���2��������S�%7�%7��%<�=�>�������!������� �������!����#�,�,�S�1�2����r�3�7�7�2�2�D�9����Q�\�\�#�"4�"4�S�"9�:����G�G�	rc���QoQo[QU*Q*U*Q*2oUOoUOUQ2oUOUQ2oSOUO	Q2PI9%c+UO
%(9%cUO
%(2UO
U2SOUOUO	Q229%c&UO
9%cUO
%(2UO
U2SOUOUO	Q229%cIUOUO	Q229%c!UO
9%c
UO
2UOUQ2oQUm	UOU2UOUOUO	Q222UOUO
2UOUO
2UOUO
2UOUO	Q22UOU[O O"Q	2SOUOUO	Q229%c
UO
2P!r,)rrdr�r4r&r$�setIdAttributeNoder�r.r�r�r0r?rr�rrr�r/s&       r�testSetIdAttributeNode�"MinidomTest.testSetIdAttributeNode`sd��)��)���)�+.�/�2)�)�+.�/�25�5�6��
����
�
!�
!�#�t�
,��
�
!�
!�#�t�
,�����S�'�'��,��4� � ����K� � ����K�	!�	
���R� ����Q�\�\�#�"4�"4�S�"9�:� � ��G�G� � ����K�	!�	
���R� ����Q�\�\�#�"4�"4�S�"9�:����L�L��!3�!3�C�!8�9����G�G����G�G�	�
�
"�
"�3��
-�����	���2��������S�%7�%7��%<�=�>�������!������� �������!����#�,�,�S�1�2����r�3�7�7�2�2�D�9����Q�\�\�#�"4�"4�S�"9�:����G�G�	rc��V1,oU%CcLUO2vqEUOUOUO2UO[UO2[UO22UOUO
UO
2UO
UOU22UO
UOU22UO[O6XCc�[UO2[UO2[UO2[UO2UO[UO2[UO22UO[UO2[UO22[[UO22FD�oUOOU2oUOOU2oUOUOUO2UOUOUO2UOUO UO 2UO#Vx12J�	[[UO22FD�oUOOU2o	UOOU2o
UOU	O$U
O$2UOU	OU
O2UOU	O U
O 2UO#V�12J�	UO[O&6wcUUO)UO*OU22UO)UO*OU22[[UO22FD8oUO#UOU*UOU*12J:	CJTP!r/)�popr8r�rorlr�r?r�rr3rrr�r)rYr7r8rr9�
DOCUMENT_NODEr0r*)r1rr�stack�n1�n2r�no1�no2rrs&&&        r�assert_recursive_equal�"MinidomTest.assert_recursive_equal�s�����
���e��Y�Y�[�F�B����R�[�[�"�+�+�6����S����/��R�]�]�1C�D����R�[�[�"�+�+�6����R�]�]�2�.�/����R�]�]�2�.�/��{�{�d�5�5�5��B�K�K� ��B�K�K� ��B�L�L�!��B�L�L�!�� � ��R�[�[�!1�3�r�{�{�3C�D�� � ��R�\�\�!2�C����4E�F��s�2�<�<�0�1�A��,�,�+�+�A�.�C��,�,�+�+�A�.�C��$�$�S�X�X�s�x�x�8��$�$�S�\�\�3�<�<�@��$�$�S�\�\�3�<�<�@��L�L�#��,�2��s�2�;�;�/�0�A����)�)�!�,�B����)�)�!�,�B��$�$�R�_�_�b�o�o�F��$�$�R�[�[�"�+�+�>��$�$�R�[�[�"�+�+�>��L�L�"��*�
1��{�{�d�0�0�0����� 0� 0� ;� ;�C� @�A����� 0� 0� ;� ;�D� A�B��3�r�}�}�-�.�����b�m�m�A�.��
�
�a�0@�A�B�/�Arc���[[2o[][O]*2FD@o[O
V2o[OU2oUOV2JB	P!)�)r�sampler��pickle�HIGHEST_PROTOCOL�dumps�loadsr@)r1r�protor:rs&    r�testPickledDocument�MinidomTest.testPickledDocument�sQ���&�!���1�f�5�5��9�:�E����S�(�A��<�<��?�D��'�'��2�;rc�t�[[2o[OU2oUO	V2P!r/)rrD�copy�deepcopyr@r.s&  r�testDeepcopiedDocument�"MinidomTest.testDeepcopiedDocument�s(���&�!���}�}�S�!���#�#�C�.rc��[2oUOUOQ22UO[UO
2P!)zfoo--bar)rr�r�r��
ValueErrorrtrAs& r�(testSerializeCommentNodeWithDoubleHyphen�4MinidomTest.testSerializeCommentNodeWithDoubleHyphen�s5��(�*������)�)�*�5�6����*�c�i�i�0rc��[Q2o[UO22oUOUO[O
O2P!)z$<element xmlns=''>
<foo/>
</element>)rrtr8rUrrr�r.s&  r�testEmptyXMLNSValue�MinidomTest.testEmptyXMLNSValue�sA���/�0���3�9�9�;�'������*�*�C�G�G�,C�,C�Drc��UO[[129^tt^2[Q2PPP2P!)%fhP!9h)z0<element xmlns:abc="http:abc.com/de f g/hi/j k">zE<element xmlns:abc="http:abc.com/de f g/hi/j k"><abc:foo /></element>)r�rRr
rr>s&r�!testExceptionOnSpacesInXMLNSValue�-MinidomTest.testExceptionOnSpacesInXMLNSValue�s4��
�
�
�
�J�7�
8�
8��(�
�9�
8�
8�
8�s�;�A	�A	c��[[2oUOOQ2]*oUO	[
OOUOU2[UO2oUOUO]*2[UO2oUOVC]*
2P!)�TITLE)rrHrdrcr�rrrrrorlr8)r1r�	title_tag�num_children_before�num_children_afters&    r�testDocRemoveChild�MinidomTest.testDocRemoveChild�s����G�n���'�'�<�<�W�E�a�H�	����3�7�7�.�.�����K�!�#�.�.�1��������q�)�*� ����0�����+�1�-D�Erc�X�[[2oUOQQ2oQUmP!)rr�crash)rrHr
r�)r1rr�s&  r�"testProcessingInstructionNameError�.MinidomTest.testProcessingInstructionNameError�s&���G�n��
�
,�
,�S�#�
6����rc��Qo[U2o[O2oUOU2UO	UO2U2P!��E<?xml version="1.0" ?><curriculum status="public" company="example"/>)r�io�StringIO�writexmlr8�getvalue)r1�xml_strr�outputs&   r�test_minidom_attribute_order�(MinidomTest.test_minidom_attribute_order�s?��Y���'�"����������V��������*�G�4rc�b�Qo[U2oUOUO2U2P!rg)rr8rt�r1rmrs&  r�"test_toxml_with_attributes_ordered�.MinidomTest.test_toxml_with_attributes_ordered�s'��Y���'�"���������g�.rc�b�Qo[U2oUOUO2Q2P!)rhzG<?xml version="1.0" ?>
<curriculum status="public" company="example"/>
�rr8r�rrs&  r�(test_toprettyxml_with_attributes_ordered�4MinidomTest.test_toprettyxml_with_attributes_ordered�s/��Y���'�"��������*�M�	Nrc�b�Qo[U2oUOUO2Q2P!)�C<?xml version="1.0" ?><root><node><![CDATA[</data>]]></node></root>zH<?xml version="1.0" ?>
<root>
	<node><![CDATA[</data>]]></node>
</root>
rvrrs&  r�test_toprettyxml_with_cdata�'MinidomTest.test_toprettyxml_with_cdata�s-��W���'�"��������*�%�	&rc��Qo[U2oUOUOQ2]*OQ2[UO	22oUOUOQ2]*OQ2P!)rzr9z</data>)rr<rcrrr�)r1rm�dom1rs&   r�test_cdata_parsing�MinidomTest.test_cdata_parsing�sp��W���7�#�����D�5�5�f�=�a�@�K�K�Y�W��4�+�+�-�.�����D�5�5�f�=�a�@�K�K�Y�Wrr=)�Test)�r�r�r�r�r4r<rBrMrQr\r_rfr{r�r�r�r�requires_resourcer�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr%r+r0r4r:r?rGrMrTr]rardrgrlrxr}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�rrrrr"r'r*r/r4r>rCrGrJrQrTrYr`rdrirlrprsrvrzr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr!r)r2r6r@rJrOrSrVrYr`rdrorsrwr{rr�r�r�s@rr-r-6s�����(�D�*�
1�1�6�4��&�P+��"�
���u�%� 
�&� 
�D=����*�"�)�)�
�
���*	�	���$4�%�N
-�
%�<��)�
�+�
=�"����&�+�**�&<�L�	E�I�
C�>�
?�"�'��(�)��#��$�%�&�$�&�K�9�'�&�+�+�0�$�'�.�0�3�"�"�/�/�$
���
A�C�2 4�D!�
0�!�
P�
C�@�*�*�M�C�@�+�5�2�-(�^+��2�*�$�$�(�*<�~�B��
�
��.� ���0:�K�Z)�V�"+�HB�/�:@�B�>"�H"�H#C�J3�/�
1�E��F��5�/�
N�&�X�Xrr-�__main__r/)rMrErir2r�unittest�xml.dom.minidomrrrrrrrr	�xml.parsers.expatr
�findfilerHrDrr&r+�TestCaser-r��mainr=rr�<module>r�s���
�	����M�M�0�(��
�
�:�m�
<��7��G�� �CX�(�#�#�CX�J6�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit