Sindbad~EG File Manager
�
)Μg � �l � d dl Z d dlmZ d dlmZmZ G d� d� Z G d� dee� Z G d� d ee� Zy)
� N)�StringIO)�PyTest�CTestc � � e Zd Zd� Zd� Zy)�
TestIndentc
� � dgdgg dddddidd d
�g}t j d� }| j |� }| j |dd
d�� }| j |dd
d�� }| j |dd
�� }| j |dd
�� }| j |� }| j |� } | j |� }
| j ||� | j | |� | j |
|� | j ||j d� � | j ||� | j ||� | j ||� y )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)�,z: )�indent� sort_keys�
separators� )r r )�textwrap�dedent�dumps�loads�assertEqual�
expandtabs)�self�h�expect�d1�d2�d3�d4�d5�h1�h2�h3s �7/usr/local/lib/python3.12/test/test_json/test_indent.py�test_indentzTestIndent.test_indent sC � ��[�8�*�b�+�{�M��r�]�e�%�@�
C�� ��� "
� ��* �Z�Z��]��
�Z�Z��!�t��Z�
L��
�Z�Z��$�$�;�Z�
O��
�Z�Z��!�t�Z�
4��
�Z�Z��$�$�Z�
7��
�Z�Z��^��
�Z�Z��^��
�Z�Z��^������Q������Q������Q������V�.�.�q�1�2�����V�$�����R� �����R� � c �@ � �� ddi��� fd�} |dd� |d d� y )N� � c �� �� �j �| �� }�j ||� t � }�j j �|| �� �j |j � |� y )N)r )r r r �json�dump�getvalue)r �expectedr �sior r s ��r'