관리-도구
편집 파일: tests.cpython-36.opt-1.pyc
3 �Pf� � @ 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 y|||� W n | k r" d S X t d| ��d S )NzDid not raise %s.)�AssertionError)Z exceptionZfunction�args�kwargs� r �/usr/lib/python3.6/tests.py� assert_raises s r c C s d S )Nr r r r r �test_labels s r c C sZ x>t D ]6} x dD ]}tdg| | �\}}qW t| �}t| �}qW xtt j� �D ]}qNW d S )Nr r � � )r r r )r r r r �set�values)Zlabel�repeat�output�_�decoder�encoder�namer r r �test_all_labels0 s r c C sT t ttdd� t ttdd� t ttg d� t ttg d� t ttd� t ttd� d S )Ns éZinvalid� é)r �LookupErrorr r r r r r r r r r �test_invalid_labelC s r! c C s d S )Nr r r r r �test_decodeL s r"