Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/test/__pycache__/test_charmapcodec.cpython-39.opt-1.pyc

a

��g��@sPdZddlZddlZdd�Ze�e�dZGdd�dej�ZedkrLe�	�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.

�NcCs$|dkr ddlm}t|���SdS)N�	testcodecr)r)�testr�tuple�getregentry)�encodingr�r�2/usr/local/lib/python3.9/test/test_charmapcodec.py�codec_search_functionsr	rc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�CharmapCodecTestcCs^|�tdt�d�|�tdt�d�|�tdt�d�|�tdt�d�|�td	t�d
�dS)N�abc�abcsxdefZabcdefsdefxZdefabcsdxfZdabcfsdxfxZdabcfabc��assertEqual�str�	codecname��selfrrr�test_constructorxs
z"CharmapCodecTest.test_constructorxcCs^|�d�t�d�|�d�t�d�|�d�t�d�|�d�t�d�|�d	�t�d
�dS)NrrZxdefsabcdefZdefxsdefabcZdxfsdabcfZdxfxsdabcfabc)r�encoderrrrr�test_encodex$s
zCharmapCodecTest.test_encodexcCsL|�tdt�d�|�tdt�d�|�tdt�d�|�tdt�d�dS)Nsydef�defsdefysdyf�dfsdyfyr
rrrr�test_constructory+sz"CharmapCodecTest.test_constructorycCs|�ttdt�dS)Nsabc)ZassertRaises�UnicodeErrorrrrrrr�test_maptoundefined1sz$CharmapCodecTest.test_maptoundefinedN)�__name__�
__module__�__qualname__rrrrrrrrr
sr
�__main__)
�__doc__Zunittest�codecsr	�registerrZTestCaser
r�mainrrrr�<module>s


Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists