Sindbad~EG File Manager
�
&Μg � �z � d Z ddlZddlZd� ZdZ G d� dej
� Zedk( r ej � 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( rddl m} t |j � � S y )N� testcodecr )r )�testr �tuple�getregentry)�encodingr s �3/usr/local/lib/python3.12/test/test_charmapcodec.py�codec_search_functionr
s$ � ��;��"��Y�*�*�,�-�-�� r c �* � e Zd Zd� Zd� Zd� Zd� Zd� Zy)�CharmapCodecTestc �~ � t j t � | j t j t � y )N)�codecs�registerr
�
addCleanup�
unregister��selfs r �setUpzCharmapCodecTest.setUp s$ � ����-�.�����)�)�+@�Ar c �D � | j t dt � d� | j t dt � d� | j t dt � d� | j t dt � d� | j t d t � d
� y )N� abc�abcs xdef�abcdefs defx�defabcs dxf�dabcfs dxfx�dabcfabc��assertEqual�str� codecnamer s r �test_constructorxz"CharmapCodecTest.test_constructorx su � �����V�Y�/��7�����W�i�0�(�;�����W�i�0�(�;�����V�Y�/��9�����W�i�0�*�=r c �v � | j dj t � d� | j dj t � d� | j dj t � d� | j dj t � d� | j d j t � d
� y )Nr r �xdefs abcdef�defxs defabc�dxfs dabcf�dxfxs dabcfabc)r �encoder r s r �test_encodexzCharmapCodecTest.test_encodex'