403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.230
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_dictviews.cpython-36.pyc
3

�w2_|.�@sNddlZddlZddlZddlZddlZGdd�dej�ZedkrJej�dS)�Nc@s|eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)�DictSetTestcCsvtij��}|jt|i�|jt|�tij��}|jt|i�|jt|�tij��}|jt|i�|jt|�dS)N)�type�keys�assertRaises�	TypeError�items�values)�selfZkt�itZvt�r�8/opt/alt/python36/lib64/python3.6/test/test_dictviews.py�test_constructors_not_callable	sz*DictSetTest.test_constructors_not_callablecCsddd�}|j�}|jt|�d�|jt|�ddh�|j|ddh�|j|dddh�|j|ddh�|j|dh�|j|d�|jd|�|jd|�|jd|�|jd	|�|j|j�|j��d
dd�}|j|j�|j��|d=|j|j�|j��dS)N�
�ABC)��a�rr�b�*�Z��def)r�assertEqual�len�set�assertNotEqual�assertIn�assertNotIn)r	�dr�errr�test_dict_keyss$

zDictSetTest.test_dict_keyscCs&ddd�}|j�}|jt|�d�|jt|�dd
h�|j|ddh�|j|dddh�|j|ddh�|j|dh�|j|d	�|jd|�|jd|�|jd|�|jd|�|jf|�|jd|�|jd|�|j|j�|j��|j�}|j|j�|j��d|d<|j|j�|j��dS)Nrr)rrrrrZjunkrrr�)rr)rr)rr)rr)rr)rr)rr)rr)rr)rr)rr)rr)r)rrr!)rrrrrrr�copy)r	rrrrrr�test_dict_items(s*
zDictSetTest.test_dict_itemscCsBddddi}ddd�}|j|j�|j��|j|j�|j��dS)Nrrr�)rr)rr)rr)rrrr)r	rrrrr�test_dict_mixed_keys_items?s
z&DictSetTest.test_dict_mixed_keys_itemscCs:ddd�}|j�}|jt|�ddh�|jt|�d�dS)Nrr)rrr)rrrr)r	rrrrr�test_dict_valuesEs
zDictSetTest.test_dict_valuescCs�ddd�}|jt|�t�t|j��}|j|t�|j|dkpD|dk�t|j��}|j|t�|j|dkpr|dk�t|j��}|j|t�|j|dkp�|d	k�dS)
Nrr)rrz#dict_items([('a', 'ABC'), (1, 10)])z#dict_items([(1, 10), ('a', 'ABC')])zdict_keys(['a', 1])zdict_keys([1, 'a'])zdict_values(['ABC', 10])zdict_values([10, 'ABC']))�assertIsInstance�repr�strr�
assertTruerr)r	r�rrrr�test_dict_reprKs


zDictSetTest.test_dict_reprcCs�ddd�}ddd�}ddd�}|j|j�|j�@d	d
h�|j|j�|j�@d
h�|j|j�|j�@t��|j|j�t|j��@d	d
h�|j|j�t|j��@d
h�|j|j�t|j��@t��|j|j�t|j��@d	d
h�|j|j�|j�Bd	d
h�|j|j�|j�Bd	d
dh�|j|j�|j�Bd	d
dd
h�|j|j�t|j��Bd	d
h�|j|j�t|j��Bd	d
dh�|j|j�t|j��Bd	d
dd
h�|j|j�dBd	d
ddh�|j|j�|j�At��|j|j�|j�Ad	dh�|j|j�|j�Ad	d
dd
h�|j|j�t|j��At��|j|j�t|j��Ad	dh�|j|j�t|j��Ad	d
dd
h�|j|j�t|j��Ad	dh�|j|j�|j�t��|j|j�|j�d	h�|j|j�|j�d	d
h�|j|j�t|j��t��|j|j�t|j��d	h�|j|j�t|j��d	d
h�|j|j�dd	d
h�|j|j�j|j���|j|j�j|j���|j|j�jt|j����|j|j�jt|j����|j|j�jdddh��|j|j�jdddg��|j|j�jtdddg���|j|j�jtddg���|j|j�jddg��|j|j�ji��|j|j�j|j���i}|j|j�jt���|j|j�jg��|j|j�j|j���|j|j�jdg��dS)Nrr)rrr!)r�c��)rrrrr-rrr�x�y�z)rr)rr)rrr�tuple�assertFalse�
isdisjoint�listr*)r	�d1�d2�d3�derrr�test_keys_set_operations[sb


    "    z$DictSetTest.test_keys_set_operationscCs�ddd�}ddd�}ddd�}|j|j�|j�@ddh�|j|j�|j�@dh�|j|j�|j�@t��|j|j�t|j��@ddh�|j|j�t|j��@dh�|j|j�t|j��@t��|j|j�|j�Bddh�|j|j�|j�Bdddh�|j|j�|j�Bddddh�|j|j�t|j��Bddh�|j|j�t|j��Bdd d!h�|j|j�t|j��Bd"d#d$d%h�|j|j�|j�At��|j|j�|j�Ad&d'h�|j|j�|j�Ad(d)d*d+h�|j|j�|j�t��|j|j�|j�d,h�|j|j�|j�d-d.h�|j|j�t|j��t��|j|j�t|j��d/h�|j|j�t|j��d0d1h�|j|j�j|j���|j|j�j|j���|j|j�jt|j����|j|j�jt|j����|j|j�jddd
h��|j|j�jddd
g��|j|j�jtddd
g���|j|j�jtddg���|j|j�ji��|j|j�j|j���i}|j|j�jt���|j|j�jg��|j|j�j|j���|j|j�jdg��dS)2Nrr)rrr.r/)rrrrrrr0r1r2)rr)rr)rr)rr)rr)rr)rr)rr)rr)rr)rr)rr)rr)rr.)rr/)rr)rr)rr)rr)rr)rr)rr)rr.)rr/)rr)rr)rr)rr)rr.)rr/)rr)rr)rr)rr)rr)rr)rrrr4r5r6r*)r	r7r8r9r:rrr�test_items_set_operations�sb






 z%DictSetTest.test_items_set_operationscCsHi}|j�|d<t|�}|j|t�|j�|d<t|�}|j|t�dS)Nr)rr(r'r)r)r	rr+rrr�test_recursive_repr�szDictSetTest.test_recursive_reprcCs<i}x$ttj�d�D]}d|j�i}qW|jtt|�dS)N�dr)�range�sys�getrecursionlimitrr�RecursionErrorr()r	r�irrr�test_deeply_nested_repr�sz#DictSetTest.test_deeply_nested_reprcCsJddd�}|jttj|j��|jttj|j��|jttj|j��dS)Nrr)rr)rrr"rrr)r	rrrr�	test_copy�s
zDictSetTest.test_copyc	sGdd�dt��G�fdd�d�}|�|�}}|�|�}}||i}|j||�|j||j��|j||j��|j||f|j��|j�|j|�|j�|j�j|�|j�|j�j||f�|j�|j�j||f�|j���||j�kWdQRXdS)Nc@seZdZdS)z+DictSetTest.test_compare_error.<locals>.ExcN)�__name__�
__module__�__qualname__rrrr�Exc�srIcs eZdZdd�Z�fdd�ZdS)z-DictSetTest.test_compare_error.<locals>.BadEqcSsdS)N�r)r	rrr�__hash__�sz6DictSetTest.test_compare_error.<locals>.BadEq.__hash__cs��dS)Nr)r	�other)rIrr�__eq__�sz4DictSetTest.test_compare_error.<locals>.BadEq.__eq__N)rFrGrHrKrMr)rIrr�BadEq�srN)�	Exceptionrrrrr�__contains__)r	rNZk1Zk2Zv1Zv2rr)rIr�test_compare_error�szDictSetTest.test_compare_errorcCszddd�}xjttjd�D]X}|jttjftj|j�|�|jttjftj|j�|�|jttjftj|j	�|�qWdS)Nrr)rrr)
r?�pickleZHIGHEST_PROTOCOLrrZ
PicklingError�dumpsrrr)r	r�protorrr�test_pickle�s
zDictSetTest.test_picklecCstdd�}|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj	�|j|j
�tj�|j|j
�tj�|j|j
�tj�|j|j�tj
�|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj	�dS)Nr)r)�dictr'r�collections�KeysView�MappingView�Set�Sized�Iterable�	Containerr�
ValuesViewr�	ItemsView)r	rrrr�test_abc_registrys 
zDictSetTest.test_abc_registryN)rFrGrHr
r r#r%r&r,r;r<r=rDrErQrUr`rrrrrs88

r�__main__)	rWr"rRr@ZunittestZTestCaserrF�mainrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit