관리-도구
편집 파일: tests.cpython-310.pyc
o ƚ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 s4 z ||i |�� W n | y Y d S w t d| ��)NzDid not raise %s.)�AssertionError)� exception�function�args�kwargs� r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/webencodings/tests.py� assert_raises s �r c C s t d�jdks J �t d�jdksJ �t d�jdksJ �t d�jdks$J �t d�jdks-J �t d�jdks6J �t d�jdks?J �t d�d u sGJ �t d�d u sOJ �t d �jd ksXJ �t d�jd ksaJ �t d�jd ksjJ �t d �jd kssJ �t d�d u s{J �t d�d u s�J �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 ]m} td| �dt| �fksJ �td| �dksJ �dD ]"}tdg| | �\}}t|�g ks0J �ttdg| | ��g ks>J �qt| �}|�d�dksLJ �|jddd�dksWJ �t| �}|�d�dksdJ �|jddd�dksoJ �qt t � � �D ]}t|�j|ks�J �qvd 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'