File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_xml_dom_minicompat.cpython-312.opt-1.pyc
�
�h�e� � � � d dl Z d dlZd dlZd dlZd dl� G d� dej � Z G d� dej � Ze dk( r ej � yy)� N)�*c �( � e Zd ZdZd� Zd� Zd� Zd� Zy)�EmptyNodeListTestCasez"Tests for the EmptyNodeList class.c �T � t � }| j |j d� � | j |j d� � | j t � 5 |d d d d � | j t � 5 |d d d d � y # 1 sw Y �-xY w# 1 sw Y y xY w)Nr ���)�
EmptyNodeList�assertIsNone�item�assertRaises�
IndexError��self� node_lists �C/opt/alt/python312/lib64/python3.12/test/test_xml_dom_minicompat.py�test_emptynodelist_itemz-EmptyNodeListTestCase.test_emptynodelist_item s� � �!�O� ����)�.�.��+�,����)�.�.��,�-�
�
�
�z�
*� ��a�L� �
�
�
�z�
*� ��b�M� � � � �� � �s � B�B�B�B'c �� � t � }| j |j d� | j t j
j � 5 d|_ d d d � y # 1 sw Y y xY w)Nr �o )r �assertEqual�lengthr �xml�dom�NoModificationAllowedErrr
s r �test_emptynodelist_lengthz/EmptyNodeListTestCase.test_emptynodelist_length sT � �!�O� �����)�)�1�-�
�
�
�s�w�w�?�?�
@� #�"�I�� #� #� #�s �A!�!A*c �b � t � t � z }| j |t � � y )N)r �NodeListr r
s r �test_emptynodelist___add__z0EmptyNodeListTestCase.test_emptynodelist___add__"