Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/words/test/__pycache__/ |
Upload File : |
o �b? � @ sH d dl mZ d dlmZmZmZ G dd� dej�ZG dd� dej�ZdS )� )�unittest)�nameprep�nodeprep�resourceprepc @ s e Zd ZdZdd� ZdS )�DeprecationTestszL Deprecations in L{twisted.words.protocols.jabber.xmpp_stringprep}. c C sd ddl m} | j| jgd�}| �t|d d � | �d|d d � | �dt|�� | �|d� d S ) zX L{xmpp_stringprep.crippled} is deprecated and always returns C{False}. r )�crippled)�offendingFunctions�categoryzrtwisted.words.protocols.jabber.xmpp_stringprep.crippled was deprecated in Twisted 13.1.0: crippled is always False�message� FN)�.twisted.words.protocols.jabber.xmpp_stringprepr � flushWarnings� test_crippled�assertEqual�DeprecationWarning�len)�selfr �warnings� r �N/usr/lib/python3/dist-packages/twisted/words/test/test_jabberxmppstringprep.pyr s �zDeprecationTests.test_crippledN)�__name__� __module__�__qualname__�__doc__r r r r r r s r c @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) �XMPPStringPrepTestsa� The nodeprep stringprep profile is similar to the resourceprep profile, but does an extra mapping of characters (table B.2) and disallows more characters (table C.1.1 and eight extra punctuation characters). Due to this similarity, the resourceprep tests are more extensive, and the nodeprep tests only address the mappings additional restrictions. The nameprep profile is nearly identical to the nameprep implementation in L{encodings.idna}, but that implementation assumes the C{UseSTD4ASCIIRules} flag to be false. This implementation assumes it to be true, and restricts the allowed set of characters. The tests here only check for the differences. c C s | � t�d�d� | �t�d�d� | � t�d�d� | � t�d�d� | � t�d�d� | � t�d�d� | �ttjd � | � t�d �d� | � t�d�d� | �ttjd � | �ttjd� | �ttjd� | � t�d�d� | �ttjd� | �ttjd� | �ttjd� | �ttjd� | �ttjd� | �ttjd� | �ttjd� | �ttjd� | � t�d�d� | �ttjd� | �ttjd� | �ttjd� | �ttjd� | �ttjd� | �ttjd � | �ttjd!� | � t�d"�d"� | �ttjd#� d S )$N�resource�Resource� u Henry ⅣzHenry IVu% foo͏᠆᠋barbaz︀︈️� foobarbaz� u u u � z� u u u u u u u u �u �u ⿵u ́u ́u u u u u foo־baru fooﵐbaru ا1u ا1بu )r r �prepare�assertNotEqual�assertRaises�UnicodeError�r r r r �testResourcePrep1 sH ��z$XMPPStringPrepTests.testResourcePrepc C s8 | � t�d�d� | � t�d�d� | �ttjd� d S )N�user�Userzus&er)r r r"