File: D:/Python311/Lib/test/__pycache__/test_charmapcodec.cpython-311.pyc
�
��VcN � �x � d Z ddlZddlZd� ZdZ G d� dej � � Zedk r ej � � dS 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.
� Nc �` � | dk r'ddl m} t |� � � � � S d S )N� testcodecr )r )�testr �tuple�getregentry)�encodingr s �*D:\Python311\Lib\test\test_charmapcodec.py�codec_search_functionr
s@ � ��;�� .�"�"�"�"�"�"��Y�*�*�,�,�-�-�-��4� r c �, � e Zd Zd� Zd� Zd� Zd� Zd� ZdS )�CharmapCodecTestc � � t j t � � | � t j t � � d S )N)�codecs�registerr
�
addCleanup�
unregister��selfs r �setUpzCharmapCodecTest.setUp s1 � ���-�.�.�.�����)�+@�A�A�A�A�Ar c � � | � t dt � � d� � | � t dt � � d� � | � t dt � � d� � | � t dt � � d� � | � t d t � � d
� � d S )N� abc�abcs xdef�abcdefs defx�defabcs dxf�dabcfs dxfx�dabcfabc��assertEqual�str� codecnamer s r �test_constructorxz"CharmapCodecTest.test_constructorx s� � �����V�Y�/�/��7�7�7�����W�i�0�0�(�;�;�;�����W�i�0�0�(�;�;�;�����V�Y�/�/��9�9�9�����W�i�0�0�*�=�=�=�=�=r c �� � | � d� t � � d� � | � d� t � � d� � | � d� t � � d� � | � d� t � � d� � | � d � t � � d
� � d S )Nr r �xdefs abcdef�defxs defabc�dxfs dabcf�dxfxs dabcfabc)r �encoder r s r �test_encodexzCharmapCodecTest.test_encodex'