HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/test/__pycache__/test_userstring.cpython-310.opt-1.pyc
o

�i�	�@sRddlZddlmZddlmZGdd�dejejej�Ze	dkr'e�
�dSdS)�N)�string_tests)�
UserStringc@s@eZdZeZdd�Zdd�Zdd�Zdd�Zd	d
�Z	dd�Z
d
S)�UserStringTestcOs8|�|�}|�|�}t||�|i|��}|�||�dS�N)�fixtype�getattr�assertEqual)�self�result�object�
methodname�args�kwargsZ
realresult�r�1/usr/local/lib/python3.10/test/test_userstring.py�
checkequals

�zUserStringTest.checkequalcGsX|�|�}|�|��}t||�|�Wd�n1swY|�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/sz0UserStringTest.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
�<�