관리-도구
편집 파일: tests.cpython-39.pyc
a ��Re� � @ s� d Z ddlmZ ddlmZmZmZmZmZm Z m Z mZmZ dd� Z dd� Zd d � Zdd� Zd d� Zdd� Zdd� Zdd� Zdd� ZdS )z� webencodings.tests ~~~~~~~~~~~~~~~~~~ A basic test suite for Encoding. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. � )�unicode_literals� ) �lookup�LABELS�decode�encode�iter_decode�iter_encode�IncrementalDecoder�IncrementalEncoder�UTF8c O s8 z||i |�� W n | y& Y d S 0 t d| ��d S )NzDid not raise %s.)�AssertionError)� exception�function�args�kwargs� r ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/webencodings/tests.py� assert_raises s r c C s t d�jdksJ �t d�jdks$J �t d�jdks6J �t d�jdksHJ �t d�jdksZJ �t d�jdkslJ �t d�jdks~J �t d�d u s�J �t d�d u s�J �t d �jd ks�J �t d�jd ks�J �t d�jd ks�J �t d �jd ks�J �t d�d u s�J �t d�d u �sJ �d S )Nzutf-8zUtf-8zUTF-8�utf8zutf8 z utf8 �u8u utf-8 zUS-ASCIIzwindows-1252z iso-8859-1�latin1ZLATIN1zlatin-1u LATİN1)r �namer r r r �test_labels s r c C s t D ]�} td| �dt| �fks"J �td| �dks4J �dD ]D}tdg| | �\}}t|�g ks`J �ttdg| | ��g ks8J �q8t| �}|�d�dks�J �|jddd�dks�J �t| �}|�d�dks�J �|jddd�dksJ �qt t � � �D ]}t|�j|ks�J �q�d S )N� � )r r � T)�final)r r r r r �listr r r �set�valuesr )�label�repeat�output�_�decoder�encoderr r r r �test_all_labels0 s r'