Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/test_charmapcodec.cpython-312.pyc

�

&Μg��z�dZddlZddlZd�ZdZGd�dej
�Zedk(rej�yy)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.

�Nc�L�|dk(rddlm}t|j��Sy)N�	testcodecr)r)�testr�tuple�getregentry)�encodingrs  �3/usr/local/lib/python3.12/test/test_charmapcodec.py�codec_search_functionr
s$���;��"��Y�*�*�,�-�-��rc�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�CharmapCodecTestc�~�tjt�|jtjt�y)N)�codecs�registerr
�
addCleanup�
unregister��selfs r	�setUpzCharmapCodecTest.setUps$�����-�.�����)�)�+@�Arc�D�|jtdt�d�|jtdt�d�|jtdt�d�|jtdt�d�|jtd	t�d
�y)N�abc�abcsxdef�abcdefsdefx�defabcsdxf�dabcfsdxfx�dabcfabc��assertEqual�str�	codecnamers r	�test_constructorxz"CharmapCodecTest.test_constructorx su������V�Y�/��7�����W�i�0�(�;�����W�i�0�(�;�����V�Y�/��9�����W�i�0�*�=rc�v�|jdjt�d�|jdjt�d�|jdjt�d�|jdjt�d�|jd	jt�d
�y)Nrr�xdefsabcdef�defxsdefabc�dxfsdabcf�dxfxsdabcfabc)r�encoder rs r	�test_encodexzCharmapCodecTest.test_encodex's��������i�0�&�9�������y�1�9�=�������y�1�9�=�������i�0�(�;�������y�1�;�?rc��|jtdt�d�|jtdt�d�|jtdt�d�|jtdt�d�y)Nsydef�defsdefysdyf�dfsdyfyrrs r	�test_constructoryz"CharmapCodecTest.test_constructory.s^������W�i�0�%�8�����W�i�0�%�8�����V�Y�/��6�����W�i�0�$�7rc�D�|jttdt�y)Nsabc)�assertRaises�UnicodeErrorrr rs r	�test_maptoundefinedz$CharmapCodecTest.test_maptoundefined4s�����,��Z��CrN)�__name__�
__module__�__qualname__rr!r(r,r0�rr	r
r
s��B�>�@�8�Drr
�__main__)	�__doc__�unittestrr
r �TestCaser
r1�mainr4rr	�<module>r:sL��	��
��
�	�D�x�(�(�D�:�z���H�M�M�O�r

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