| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.10/test/__pycache__/ |
Upload File : |
o
�9j�p � @ sJ d Z ddlZddlZddlZddlZddlZddlZddlmZm Z ddl
mZmZm
Z
ddlZddlZddlmZ ddlZddlZddlmZmZmZmZ ddlmZmZmZ ddlmZ dd lmZ dd
lmZmZ ddlm Z m!Z!m"Z" ddlm#Z#m$Z$m%Z%m&Z&m'Z' dd
lm(Z(m)Z)m*Z*m+Z+ ddlm,Z,m-Z- ddlm.Z.m/Z/m0Z0m1Z1m2Z2 ddlm3Z3m4Z4 ddlm5Z5 G dd� dej6�Z7G dd� dej6�Z8edd�Z9G dd� dej6�Z:G dd� dej6�Z;dd� Z<G dd� de;�Z=G d d!� d!e-�Z>G d"d#� d#e;�Z?G d$d%� d%e�Z@G d&d'� d'e�ZAG d(d)� d)ej6�ZBd/d*d+�ZCeDd,k�r#eCd-d.� dS dS )0zUnit tests for collections.py.� N)�choice� randrange)�product�chain�combinations)�support)�
namedtuple�Counter�OrderedDict�_count_elements)�UserDict�
UserString�UserList)�ChainMap)�deque)� Awaitable� Coroutine)�
AsyncIterator�
AsyncIterable�AsyncGenerator)�Hashable�Iterable�Iterator� Generator�
Reversible)�Sized� Container�Callable�
Collection)�Set�
MutableSet)�Mapping�MutableMapping�KeysView� ItemsView�
ValuesView)�Sequence�MutableSequence)�
ByteStringc @ �D e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dS )�TestUserObjectsc C s0 | � tt|��tt|��dj|j|jd�� d S )Nz&{a} should have all the methods of {b}��a�b)�assertGreaterEqual�set�dir�format�__name__)�selfr, r- � r4 �,/usr/lib/python3.10/test/test_collections.py�_superset_test s
��zTestUserObjects._superset_testc C sn |� � }| �|j|j� | �|j|j� dg|_t � |�}| �|j|j� | �|j|j� | �|j|j� d S )Ni� )�copy�assertIsNot�data�assertEqual�test�assertIs)r3 �obj�obj_copyr4 r4 r5 �
_copy_test* s
zTestUserObjects._copy_testc C � | � tt� d S �N)r6 r
�str�r3 r4 r4 r5 �test_str_protocol7 � z!TestUserObjects.test_str_protocolc C r@ rA )r6 r �listrC r4 r4 r5 �test_list_protocol: rE z"TestUserObjects.test_list_protocolc C r@ rA )r6 r �dictrC r4 r4 r5 �test_dict_protocol= rE z"TestUserObjects.test_dict_protocolc C s t � }|�d� | �|� d S )N�{ )r �appendr? �r3 r= r4 r4 r5 �test_list_copy@ s
zTestUserObjects.test_list_copyc C s t � }d|d<