%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/twisted/words/test/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/twisted/words/test/__pycache__/test_jabbererror.cpython-312.pyc |
� Ϫ�f - � �8 � d Z ddlmZ ddlmZ ddlmZ dZdZdZ dZ G d � d ej � Z G d� dej � Z G d � dej � Z G d� dej � Z G d� dej � Z G d� dej � Zy)z4 Tests for L{twisted.words.protocols.jabber.error}. � )�unittest)�error)�domishz$http://www.w3.org/XML/1998/namespace� http://etherx.jabber.org/streamsz#urn:ietf:params:xml:ns:xmpp-streamsz#urn:ietf:params:xml:ns:xmpp-stanzasc �, � e Zd Zdd�Zdd�Zdd�Zdd�Zy)�BaseErrorTestsNc �� � t j d� }|j � }| j |j d� | j t |j � d� y)z< Test getting an element for a plain error. �feature-not-implementedN� )r � BaseError� getElement�assertIdentical�uri�assertEqual�len�children��self�e�elements �E/usr/lib/python3/dist-packages/twisted/words/test/test_jabbererror.py�test_getElementPlainz#BaseErrorTests.test_getElementPlain sM � � �O�O�5�6���,�,�.�����W�[�[�$�/�����W�-�-�.��2� c �F � t j dd� }|j � }| j t |j � d� | j t |j � d� | j |j j t df� d� y)zC Test getting an element for an error with a text. r �text� �langN) r r r r r r �strr �getAttribute�NS_XMLr s r �test_getElementTextz"BaseErrorTests.test_getElementText sx � � �O�O�5�v�>���,�,�.������W�-�-�.��2�����W�\�\�*�F�3�������2�2�F�F�3C�D�d�Kr c �0 � t j ddd� }|j � }| j t |j � d� | j t |j � d� | j |j t df d� y)zP Test getting an element for an error with a text and language. r r �en_USr r N) r r r r r r r r r r s r �test_getElementTextLangz&BaseErrorTests.test_getElementTextLang'