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.7/test/__pycache__/test_userlist.cpython-37.pyc
B

��g��@sFddlmZddlmZddlZGdd�dej�ZedkrBe��dS)�)�UserList)�
list_testsNcsdeZdZeZ�fdd�Zdd�Zdd�Zdd�Z�fd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
�ZS)�UserListTestcs�t���dddddg}|�|�}xztdd�D]l}|�|d|�|d|��|�||d�||d��x.tdd�D] }|�|||�|||��qvWq.WdS)Nr��������)�super�
test_getslice�	type2test�range�assertEqual)�self�l�u�i�j)�	__class__��./usr/local/lib/python3.7/test/test_userlist.pyr
s

zUserListTest.test_getslicecCsDdddddg}t|�}|�|dd�|j�|�|dd�|�dS)Nrrrrr)rZassertIsInstancerr)rrrrrr�test_slice_typeszUserListTest.test_slice_typecCs$td�}|d}|�|td��dS)N�spam�eggs�spameggs)rr�list)rr�u2rrr�test_add_specialsszUserListTest.test_add_specialscCsBtd�}d|}|�|td��|�td��}|�|td��dS)Nrrr)rrr�__radd__)rrrrrr�test_radd_specialss
zUserListTest.test_radd_specialscs:t���ddg}|tddg�7}|�|ddddg�dS)Nrr)r�	test_iaddrr)rr)rrrr!&s
zUserListTest.test_iaddcCs@|�ddg�}|�|ddg�|�|dg�|�|ddg�dS)Nrrr)r
rZassertNotEqual)rrrrr�
test_mixedcmp,szUserListTest.test_mixedcmpcCs:|�ddg�}|�|g|�|�|dgdddg�dS)Nrrr)r
r)rrrrr�
test_mixedadd2szUserListTest.test_mixedaddcCs.Gdd�d|j�}|�tt|d���d�dS)Nc@seZdZdd�ZdS)z1UserListTest.test_getitemoverwriteiter.<locals>.TcSst|�dS)Nz!!!)�str)r�keyrrr�__getitem__:sz=UserListTest.test_getitemoverwriteiter.<locals>.T.__getitem__N)�__name__�
__module__�__qualname__r&rrrr�T9sr*)rrz0!!!)r
r�next�iter)rr*rrr�test_getitemoverwriteiter7sz&UserListTest.test_getitemoverwriteitercCs@|�dddddg�}|��}|�||�|�t|�t|��dS)Nr
�r�	)r
�copyr�type)rr�vrrr�test_userlist_copy>szUserListTest.test_userlist_copy)r'r(r)rr
rrrr r!r"r#r-r3�
__classcell__rr)rrrs
r�__main__)	�collectionsrZtestrZunittestZ
CommonTestrr'�mainrrrr�<module>s
=