| Server IP : 159.223.102.202 / Your IP : 216.73.216.195 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/words/test/__pycache__/ |
Upload File : |
�
M��e - � �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'