관리-도구
편집 파일: test_indent.cpython-311.pyc
� \�Dg � �J � d dl mZ d dlZd dlZd dlmZ G d� de� � ZdS )� )�TestCaseN)�StringIOc � � e Zd Zd� Zd� Zd� ZdS )� TestIndentc �, � dgdgg dddddidd d �g}t j d� � }t j |� � }t j |dd d�� � }t j |dd d�� � }t j |dd d�� � }t j |� � }t j |� � }t j |� � } t j |� � } | � ||� � | � ||� � | � | |� � | � | |� � | � ||� dd� � � � | � ||� dd� � � � | � ||� � d S )N�blorpie�whoopsz d-shtaeouz d-nthiouhzi-vhbjkhnth�nifty�W �yesF)�field� morefielda3 [ [ "blorpie" ], [ "whoops" ], [], "d-shtaeou", "d-nthiouh", "i-vhbjkhnth", { "nifty": 87 }, { "field": "yes", "morefield": false } ]� T��,�: )�indent� sort_keys� separatorsz � )�textwrap�dedent�json�dumps�loads�assertEqual�replace)�self�h�expect�d1�d2�d3�d4�h1�h2�h3�h4s �~/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/simplejson/tests/test_indent.py�test_indentzTestIndent.test_indent s� � ��[�8�*�b�+�{� ��r�]�e�%�@�@� C�� �� " � � ��, �Z��]�]�� �Z��$�$�;� O� O� O�� �Z��$�$�;� O� O� O�� �Z��!�t�� L� L� L�� �Z��^�^�� �Z��^�^�� �Z��^�^�� �Z��^�^������Q��������Q��������Q��������Q��������V�^�^�D�$�7�7�8�8�8�����V�^�^�D�$�7�7�8�8�8� ����V�$�$�$�$�$� c �N � �� ddi��� fd�} |dd� � |d d� � d S )N� � c � �� t j �| �� � }�� ||� � t � � }t j �|| �� � �� |� � � |� � d S )N�r )r r r r �dump�getvalue)r �expectedr! �sior r s ��r) �checkz&TestIndent.test_indent0.<locals>.check: sq �� ���A�f�-�-�-�B����R��*�*�*��*�*�C��I�a��V�,�,�,�,����S�\�\�^�^�X�6�6�6�6�6r+ r z { "3": 1 }z{"3": 1}� )r r5 r s ` @r) �test_indent0zTestIndent.test_indent08 sW ��� � ��F�� 7� 7� 7� 7� 7� 7� ��a�� � � � ��d�J�����r+ c � � g d�}d}d}| � |t j |dd�� � � � | � |t j |dd�� � � � | � |t j |d�� � � � d S ) N)r. r r- � z[ 1, 2, 3, 4 ]z[ 1, 2, 3, 4 ]r )z, r )r r r r0 )r r r )r �lstr � expect_spacess r) �test_separatorszTestIndent.test_separatorsG s� � ��i�i��&��0� ������J�s�1��>�>�>� @� @� @� �����J�s�1��=�=�=� ?� ?� ?� �����J�s�1�%�%�%� '� '� '� '� 'r+ N)�__name__� __module__�__qualname__r* r7 r<