Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/__pycache__/test_xml_dom_minicompat.cpython-312.opt-2.pyc

�

'Μg����ddlZddlZddlZddlZddl�Gd�dej�ZGd�dej�Ze	dk(rej�yy)�N)�*c�&�eZdZ	d�Zd�Zd�Zd�Zy)�EmptyNodeListTestCasec�T�t�}|j|jd��|j|jd��|jt�5|dddd�|jt�5|dddd�y#1swY�-xYw#1swYyxYw)Nr���)�
EmptyNodeList�assertIsNone�item�assertRaises�
IndexError��self�	node_lists  �9/usr/local/lib/python3.12/test/test_xml_dom_minicompat.py�test_emptynodelist_itemz-EmptyNodeListTestCase.test_emptynodelist_items~��!�O�	����)�.�.��+�,����)�.�.��,�-�
�
�
�z�
*��a�L�+�
�
�
�z�
*��b�M�+�
*�+�
*��
*�
*�s� B�B�B�B'c���t�}|j|jd�|jtj
j�5d|_ddd�y#1swYyxYw)Nr�o)r�assertEqual�lengthr�xml�dom�NoModificationAllowedErrr
s  r�test_emptynodelist_lengthz/EmptyNodeListTestCase.test_emptynodelist_lengthsL��!�O�	�����)�)�1�-�
�
�
�s�w�w�?�?�
@�"�I��A�
@�
@�s�A!�!A*c�b�t�t�z}|j|t��y)N)r�NodeListrr
s  r�test_emptynodelist___add__z0EmptyNodeListTestCase.test_emptynodelist___add__"s"��!�O�h�j�0�	�����H�J�/�c�J�ddgt�z}|j|ddg�y�N��)rrr
s  r�test_emptynodelist___radd__z1EmptyNodeListTestCase.test_emptynodelist___radd__&s&���q�E�M�O�+�	�����Q�q�E�*rN)�__name__�
__module__�__qualname__rrrr"�rrrrs��,�
�#�0�+rrc�8�eZdZ	d�Zd�Zd�Zd�Zd�Zd�Zd�Z	y)	�NodeListTestCasec�n�t�}|j|jd��|j|jd��|jt�5|dddd�|jt�5|dddd�|jd�|jd�|j
|jd�d�|j|jd��|j
|dd�|j
|dd�y#1swY��xYw#1swY��xYw)Nrrri�)rr	r
rr�appendrr
s  r�test_nodelist_itemz#NodeListTestCase.test_nodelist_item.s����J�	����)�.�.��+�,����)�.�.��,�-�
�
�
�z�
*��a�L�+�
�
�
�z�
*��b�M�+�	�����������������*�C�0����)�.�.��,�-�����1��s�+�����2���,�+�
*��
*�
*�s� D�D+�D(�+D4c���tddg�}|j|jd�|jtj
j�5d|_ddd�y#1swYyxYw)Nr r!r)rrrrrrrr
s  r�test_nodelist_lengthz%NodeListTestCase.test_nodelist_lengthEsS���a��V�$�	�����)�)�1�-�
�
�
�s�w�w�?�?�
@�"�I��A�
@�
@�s�A$�$A-c�b�tddg�ddgz}|j|tgd���y)N��r r!)r/r0r r!�rrr
s  r�test_nodelist___add__z&NodeListTestCase.test_nodelist___add__Ms.���a��V�$��1�v�-�	�����H�\�$:�;rc�b�ddgtddg�z}|j|tgd���y)Nr r!r/r0)r r!r/r0r1r
s  r�test_nodelist___radd__z'NodeListTestCase.test_nodelist___radd__Qs.����F�X�q�!�f�-�-�	�����H�\�$:�;rc���ttjdz�D]�}t�}tj||�}tj
|�}|j
||�|j||�|jd�|jd�tj||�}tj
|�}|j
||�|j||���yr)	�range�pickle�HIGHEST_PROTOCOLr�dumps�loads�assertIsNotrr*)r�protor�pickled�	unpickleds     r�test_nodelist_pickle_roundtripz/NodeListTestCase.test_nodelist_pickle_roundtripUs����6�2�2�Q�6�7�E� �
�I��l�l�9�e�4�G����W�-�I����Y�	�2����Y�	�2�
���Q�����Q���l�l�9�e�4�G����W�-�I����Y�	�2����Y�	�2�8rc��t�}tj|�}|j||�|j||�|j	dg�|j	dg�tj|�}|j||�|j||�t||�D]\}}|j
||��yr)r�copyr;rr*�zip�assertIs�rr�copied�x�ys     r�test_nodelist_copyz#NodeListTestCase.test_nodelist_copyhs����J�	����9�%�������+������+�	���!������!������9�%�������+������+���	�*�D�A�q��M�M�!�Q��+rc��t�}tj|�}|j||�|j	||�|jdg�|jdg�tj|�}|j||�|j	||�t
||�D])\}}|j||�|j	||��+yr)rrA�deepcopyr;rr*rBrDs     r�test_nodelist_deepcopyz'NodeListTestCase.test_nodelist_deepcopyxs����J�	����y�)�������+������+�	���!������!������y�)�������+������+���	�*�D�A�q����Q��"����Q��"�+rN)
r#r$r%r+r-r2r4r?rHrKr&rrr(r(+s(��'�-�.#�<�<�3�& � #rr(�__main__)rAr7�unittest�xml.domr�xml.dom.minicompat�TestCaserr(r#�mainr&rr�<module>rRsX���
��� �+�H�-�-�+�@\#�x�(�(�\#�|�z���H�M�M�O�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists