HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //proc/thread-self/root/usr/local/lib/python3.7/test/__pycache__/test_charmapcodec.cpython-37.pyc
B

��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)Ztestr�tuple�getregentry)�encodingr�r�2/usr/local/lib/python3.7/test/test_charmapcodec.py�codec_search_functionsrrc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�CharmapCodecTestcCs^|�tdt�d�|�tdt�d�|�tdt�d�|�tdt�d�|�td	t�d
�dS)Nsabc�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
sabcZxdefsabcdefZdefxsdefabcZdxfsdabcfZdxfxsdabcfabc)r�encoder
)rrrr�test_encodex$s
zCharmapCodecTest.test_encodexcCsL|�tdt�d�|�tdt�d�|�tdt�d�|�tdt�d�dS)Nsydef�defsdefysdyfZdfsdyfy)rrr
)rrrr�test_constructory+sz"CharmapCodecTest.test_constructorycCs|�ttdt�dS)Nsabc)ZassertRaises�UnicodeErrorrr
)rrrr�test_maptoundefined1sz$CharmapCodecTest.test_maptoundefinedN)�__name__�
__module__�__qualname__rrrrrrrrr	sr	�__main__)
�__doc__Zunittest�codecsr�registerr
ZTestCaser	r�mainrrrr�<module>
s