관리-도구
편집 파일: test_unicode.cpython-311.pyc
� \�Dg� � �^ � d dl Z d dlZd dlmZ d dlZd dlmZmZm Z m Z G d� de� � ZdS )� N)�TestCase)�unichr� text_type�b�BytesIOc �z � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� ZdS )�TestUnicodec �� � t j d�� � }d}|� d� � }|� |� � }|� |� � }| � ||� � d S )N�utf-8��encoding� αΩ)�json�JSONEncoder�encode�assertEqual)�self�encoder�u�s�ju�jss �/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/simplejson/tests/test_unicode.py�test_encoding1zTestUnicode.test_encoding1 si � ��"�G�4�4�4��I�� �H�H�W���� �^�^�A� � �� �^�^�A� � ������R� � � � � � c � � d}|� d� � }t j |d�� � }t j |d�� � }| � ||� � d S )Nr r r )r r �dumpsr )r r r r r s r �test_encoding2zTestUnicode.test_encoding2 s\ � �I�� �H�H�W���� �Z��G� ,� ,� ,�� �Z��G� ,� ,� ,������R� � � � � r c �^ � d}t j |� � }| � |d� � d S )Nr z"\u03b1\u03a9"�r r r �r r �js r �test_encoding3zTestUnicode.test_encoding3 s1 � �I���J�q�M�M������.�/�/�/�/�/r c �` � d}t j |g� � }| � |d� � d S )Nr z["\u03b1\u03a9"]r r! s r �test_encoding4zTestUnicode.test_encoding4 s3 � �I���J��s�O�O������0�1�1�1�1�1r c �n � d}t j |d�� � }| � |d|z dz � � d S )Nr F��ensure_ascii�"r r! s r �test_encoding5zTestUnicode.test_encoding5"