HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/__pycache__/test_xml_dom_minicompat.cpython-311.opt-1.pyc
�

��VcD���ddlZddlZddlZddlZddlTGd�dej��ZGd�dej��Ze	dkrej
��dSdS)�N)�*c�*�eZdZdZd�Zd�Zd�Zd�ZdS)�EmptyNodeListTestCasez"Tests for the EmptyNodeList class.c��t��}|�|�d����|�|�d����|�t��5|dddd��n#1swxYwY|�t��5|dddd��dS#1swxYwYdS)Nr���)�
EmptyNodeList�assertIsNone�item�assertRaises�
IndexError��self�	node_lists  �0D:\Python311\Lib\test\test_xml_dom_minicompat.py�test_emptynodelist_itemz-EmptyNodeListTestCase.test_emptynodelist_items>��!�O�O�	����)�.�.��+�+�,�,�,����)�.�.��,�,�-�-�-�
�
�
�z�
*�
*�	�	��a�L�L�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�
�
�
�z�
*�
*�	�	��b�M�M�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	s$�9	B�B�B�3	C	�	C
�C
c���t��}|�|jd��|�tjj��5d|_ddd��dS#1swxYwYdS)Nr�o)r�assertEqual�lengthr�xml�dom�NoModificationAllowedErrr
s  r�test_emptynodelist_lengthz/EmptyNodeListTestCase.test_emptynodelist_lengths���!�O�O�	�����)�1�-�-�-�
�
�
�s�w�?�
@�
@�	#�	#�"�I��	#�	#�	#�	#�	#�	#�	#�	#�	#�	#�	#�	#����	#�	#�	#�	#�	#�	#s�A#�#A'�*A'c��t��t��z}|�|t����dS)N)r�NodeListrr
s  r�test_emptynodelist___add__z0EmptyNodeListTestCase.test_emptynodelist___add__"s4��!�O�O�h�j�j�0�	�����H�J�J�/�/�/�/�/�c�\�ddgt��z}|�|ddg��dS�N��)rrr
s  r�test_emptynodelist___radd__z1EmptyNodeListTestCase.test_emptynodelist___radd__&s4���q�E�M�O�O�+�	�����Q�q�E�*�*�*�*�*rN)�__name__�
__module__�__qualname__�__doc__rrrr"�rrrrsV������,�,�
�
�
�#�#�#�0�0�0�+�+�+�+�+rrc�<�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	S)
�NodeListTestCasezTests for the NodeList class.c��t��}|�|�d����|�|�d����|�t��5|dddd��n#1swxYwY|�t��5|dddd��n#1swxYwY|�d��|�d��|�|�d��d��|�|�d����|�|dd��|�|dd��dS)Nrrri�)rr	r
rr�appendrr
s  r�test_nodelist_itemz#NodeListTestCase.test_nodelist_item.s����J�J�	����)�.�.��+�+�,�,�,����)�.�.��,�,�-�-�-�
�
�
�z�
*�
*�	�	��a�L�L�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�
�
�
�z�
*�
*�	�	��b�M�M�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	���������������������*�*�C�0�0�0����)�.�.��,�,�-�-�-�����1��s�+�+�+�����2���,�,�,�,�,s$�9	B�B�B�3	C�C�Cc���tddg��}|�|jd��|�tjj��5d|_ddd��dS#1swxYwYdS)Nr r!r)rrrrrrrr
s  r�test_nodelist_lengthz%NodeListTestCase.test_nodelist_lengthEs����a��V�$�$�	�����)�1�-�-�-�
�
�
�s�w�?�
@�
@�	#�	#�"�I��	#�	#�	#�	#�	#�	#�	#�	#�	#�	#�	#�	#����	#�	#�	#�	#�	#�	#s�A&�&A*�-A*c�|�tddg��ddgz}|�|tgd�����dS)N��r r!)r0r1r r!�rrr
s  r�test_nodelist___add__z&NodeListTestCase.test_nodelist___add__MsD���a��V�$�$��1�v�-�	�����H�\�\�\�$:�$:�;�;�;�;�;rc�|�ddgtddg��z}|�|tgd�����dS)Nr r!r0r1)r r!r0r1r2r
s  r�test_nodelist___radd__z'NodeListTestCase.test_nodelist___radd__QsD����F�X�q�!�f�-�-�-�	�����H�\�\�\�$:�$:�;�;�;�;�;rc��ttjdz��D]�}t��}tj||��}tj|��}|�||��|�||��|�d��|�d��tj||��}tj|��}|�||��|�||����dSr)	�range�pickle�HIGHEST_PROTOCOLr�dumps�loads�assertIsNotrr+)r�protor�pickled�	unpickleds     r�test_nodelist_pickle_roundtripz/NodeListTestCase.test_nodelist_pickle_roundtripUs����6�2�Q�6�7�7�	3�	3�E� �
�
�I��l�9�e�4�4�G���W�-�-�I����Y�	�2�2�2����Y�	�2�2�2�
���Q�������Q�����l�9�e�4�4�G���W�-�-�I����Y�	�2�2�2����Y�	�2�2�2�2�	3�	3rc���t��}tj|��}|�||��|�||��|�dg��|�dg��tj|��}|�||��|�||��t||��D]\}}|�||���dSr)r�copyr<rr+�zip�assertIs�rr�copied�x�ys     r�test_nodelist_copyz#NodeListTestCase.test_nodelist_copyhs����J�J�	���9�%�%�������+�+�+������+�+�+�	���!��������!�������9�%�%�������+�+�+������+�+�+���	�*�*�	 �	 �D�A�q��M�M�!�Q�����	 �	 rc��t��}tj|��}|�||��|�||��|�dg��|�dg��tj|��}|�||��|�||��t
||��D]1\}}|�||��|�||���2dSr)rrB�deepcopyr<rr+rCrEs     r�test_nodelist_deepcopyz'NodeListTestCase.test_nodelist_deepcopyxs���J�J�	���y�)�)�������+�+�+������+�+�+�	���!��������!�������y�)�)�������+�+�+������+�+�+���	�*�*�	#�	#�D�A�q����Q��"�"�"����Q��"�"�"�"�	#�	#rN)r#r$r%r&r,r.r3r5r@rIrLr'rrr)r)+s�������'�'�-�-�-�.#�#�#�<�<�<�<�<�<�3�3�3�& � � � #�#�#�#�#rr)�__main__)rBr8�unittest�xml.domr�xml.dom.minicompat�TestCaserr)r#�mainr'rr�<module>rSs�������
�
�
�
��������� � � � �+�+�+�+�+�H�-�+�+�+�@\#�\#�\#�\#�\#�x�(�\#�\#�\#�|�z����H�M�O�O�O�O�O��r