Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_dictviews.cpython-311.opt-2.pyc |
�
�Ke�6 � � � d dl Zd dlZd dlZd dlZd dlZ G d� dej � � Zedk r ej � � dS dS )� Nc �n � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� ZdS )�DictSetTestc � � t i � � � � � }| � t |i � � | � t |� � t i � � � � � }| � t |i � � | � t |� � t i � � � � � }| � t |i � � | � t |� � d S �N)�type�keys�assertRaises� TypeError�items�values)�self�kt�it�vts �=/usr/local/apps/python3/lib/python3.11/test/test_dictviews.py�test_constructors_not_callablez*DictSetTest.test_constructors_not_callable s� � �
�"�'�'�)�)�_�_�����)�R��,�,�,����)�R�(�(�(�
�"�(�(�*�*�
�
�����)�R��,�,�,����)�R�(�(�(�
�"�)�)�+�+�
�
�����)�R��,�,�,����)�R�(�(�(�(�(� c �� � ddd�}|� � � }| � t |� � d� � | � t |� � ddh� � | � |ddh� � | � |h d�� � | � |ddh� � | � |dh� � | � |d � � | � d|� � | � d|� � | � d|� � | � d
|� � | � |� � � |� � � � � ddd�}| � |� � � |� � � � � |d= | � |� � � |� � � � � d S )
N�
�ABC�� �a� r r > r �br r �* �Z� �def)r �assertEqual�len�set�assertNotEqual�assertIn�assertNotIn)r
�dr �es r �test_dict_keyszDictSetTest.test_dict_keys s� � �������v�v�x�x������T���A�&�&�&�����T���Q��H�-�-�-������3�x�(�(�(����D�-�-�-�0�0�0����D�1�c�(�+�+�+����D�1�#�&�&�&����D�"�%�%�%��
�
�a������
�
�c�4� � � �����T�"�"�"�����d�#�#�#���������1�6�6�8�8�,�,�,��������������1�6�6�8�8�,�,�,�
�c�F����A�F�F�H�H�a�f�f�h�h�/�/�/�/�/r c �t � ddd�}|� � � }| � t |� � d� � | � t |� � ddh� � | � |ddh� � | � |h d�� � | � |ddh� � | � |dh� � | � |d � � | � d|� � | � d|� � | � d
|� � | � d|� � | � d|� � | � d
|� � | � d|� � | � |� � � |� � � � � |� � � }| � |� � � |� � � � � d|d<