Your IP : 216.73.216.213


Current Path : /opt/alt/python34/lib64/python3.4/test/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/test/__pycache__/test_charmapcodec.cpython-34.pyc

�
f f�@s�dZddlZddlZddlZdd�Zeje�dZGdd�dej�Z	dd	�Z
ed
kr�e
�ndS)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/python34/lib64/python3.4/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
cCstjjt�dS)N)rZsupportZrun_unittestr
rrrr�	test_main4sr�__main__)�__doc__Ztest.supportrZunittest�codecsr	�registerrZTestCaser
rrrrrr�<module>
s