Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/test_userstring.cpython-38.pyc
U

>��g�	�@sNddlZddlmZddlmZGdd�dejejej�Ze	dkrJe�
�dS)�N)�string_tests)�
UserStringc@s@eZdZeZdd�Zdd�Zdd�Zdd�Zd	d
�Z	dd�Z
d
S)�UserStringTestcOs4|�|�}|�|�}t||�||�}|�||�dS�N)�fixtype�getattr�assertEqual)�self�result�object�
methodname�args�kwargsZ
realresult�r�3/opt/cppython/lib/python3.8/test/test_userstring.py�
checkequals

�zUserStringTest.checkequalc	GsD|�|�}|�|��}t||�|�W5QRX|�t|j�d�dS)N�)rZassertRaisesrZassertNotEqual�str�	exception)r	�exc�objrr
�cmrrr�checkraisess
zUserStringTest.checkraisescGs|�|�}t||�|�dSr)rr)r	rrr
rrr�	checkcall%s
zUserStringTest.checkcallcCsDGdd�dt�}Gdd�d|�}|d�}|d�}|�||d�dS)Nc@seZdZdS)z'UserStringTest.test_rmod.<locals>.ustr2N)�__name__�
__module__�__qualname__rrrr�ustr2+srcseZdZ�fdd�Z�ZS)z'UserStringTest.test_rmod.<locals>.ustr3cst��|�Sr)�super�__rmod__)r	�other��	__class__rrr/sz0UserStringTest.test_rmod.<locals>.ustr3.__rmod__)rrrr�
__classcell__rrr!r�ustr3.sr$zvalue is %sZTESTz
value is TEST)rr)r	rr$Zfmt2Zstr3rrr�	test_rmod*s
zUserStringTest.test_rmodcCs.|�ddd�|�ddd�|�tdd�dS�NshelloZhello�encodes𣑖u𣑖u��rr�UnicodeError�r	rrr�test_encode_default_args6sz'UserStringTest.test_encode_default_argscCs:|�ddddd�|�ddddd�|�tdddd�dSr&r(r*rrr�test_encode_explicit_none_args=sz-UserStringTest.test_encode_explicit_none_argsN)rrrrZ	type2testrrrr%r+r,rrrrr	s
r�__main__)Zunittest�testr�collectionsrZ
CommonTestZMixinStrUnicodeUserStringTestZTestCaserr�mainrrrr�<module>s
�<

F1le Man4ger