%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/twisted/words/test/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/twisted/words/test/__pycache__/test_domish.cpython-312.pyc |
� Ϫ�f�K � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ G d� dej � Z G d� d � Z G d � deej � Z G d� d eej � Z G d� dej � Zy)zF Tests for L{twisted.words.xish.domish}, a DOM-like library for XMPP. � )�verifyObject)� requireModule)�unittest)�domishc �p � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zy)�ElementTestsz& Tests for L{domish.Element}. c �^ � t t j t j d� � y)zB L{domish.Element} implements L{domish.IElement}. �N�fooN)r r �IElement�Element��selfs �@/usr/lib/python3/dist-packages/twisted/words/test/test_domish.py�test_interfacezElementTests.test_interface s � � �V�_�_�f�n�n�]�&C�D� c � � d}| j t j |� d� | j t j |d� d� y)zF The built-in entity references are properly encoded. z&<>'"z&<>'"� z&<>'"N)�assertEqualr �escapeToXml)r �ss r � test_escapingzElementTests.test_escaping sC � � ������+�+�A�.�0B�C�����+�+�A�q�1�3N�Or c �f � t j d� }| j |j d� y)zN An attribute on L{domish.Namespace} yields a qualified name. �testns�r r N)r � Namespacer r )r �nss r �test_namespacezElementTests.test_namespace# s) � � � � �h� '��������!2�3r c � � t j d� }| j |j d� | j |j d� | j |j d� | j |j d� t j d� }| j |j d� | j |j d� | j |j d� | j |j d� t j d� }| j |j d� | j |j d� | j |j d� | j |j d� t j dd� }| j |j d� | j |j d� | j |j d� y) z? Basic L{domish.Element} initialization tests. r r N�� r r! r r �test2ns)r r r �name�uri� defaultUri�parent�r �es r �test_elementInitzElementTests.test_elementInit* sl � � �N�N�=�)���������'��������%�������t�,�������4�(��N�N�;�'���������'��������#�������r�*�������4�(��N�N�,�-���������'��������)�������x�0�������4�(��N�N�,�i�8���������'��������)�������y�1r c �Z � t j d� }|j d� |j d� }d|d<