Your IP : 216.73.216.60


Current Path : /opt/alt/python35/lib64/python3.5/test/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/test/__pycache__/test_charmapcodec.cpython-35.opt-1.pyc



��Yf��@s|dZddlZddlZddlZdd�Zeje�dZGdd�dej�Z	e
dkrxej�dS)	z� Python character mapping codec test

This uses the test codec in testcodec.py and thus also tests the
encodings package lookup scheme.

Written by Marc-Andre Lemburg (mal@lemburg.com).

(c) Copyright 2000 Guido van Rossum.

�NcCs0|dkr,ddlm}t|j��SdS)N�	testcodecr)r)�testr�tuple�getregentry)�encodingr�r�;/opt/alt/python35/lib64/python3.5/test/test_charmapcodec.py�codec_search_functionsr	rc@s@eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�CharmapCodecTestcCs�|jtdt�d�|jtdt�d�|jtdt�d�|jtdt�d�|jtd	t�d
�dS)Nsabc�abcsxdefZabcdefsdefxZdefabcsdxfZdabcfsdxfxZdabcfabc)�assertEqual�str�	codecname)�selfrrr�test_constructorxs
z"CharmapCodecTest.test_constructorxcCs�|jdjt�d�|jdjt�d�|jdjt�d�|jdjt�d�|jd	jt�d
�dS)NrsabcZxdefsabcdefZdefxsdefabcZdxfsdabcfZdxfxsdabcfabc)r�encoder)rrrr�test_encodex$s
zCharmapCodecTest.test_encodexcCsh|jtdt�d�|jtdt�d�|jtdt�d�|jtdt�d�dS)Nsydef�defsdefysdyfZdfsdyfy)rr
r)rrrr�test_constructory+sz"CharmapCodecTest.test_constructorycCs|jttdt�dS)Nsabc)ZassertRaises�UnicodeErrorr
r)rrrr�test_maptoundefined1sz$CharmapCodecTest.test_maptoundefinedN)�__name__�
__module__�__qualname__rrrrrrrrr
sr
�__main__)�__doc__Ztest.supportrZunittest�codecsr	�registerrZTestCaser
r�mainrrrr�<module>
s