File: D:/Python311/Lib/test/test_json/__pycache__/test_indent.cpython-311.pyc
�
��Vcc � � � d dl Z d dlmZ d dlmZmZ G d� d� � Z G d� dee� � Z G d� d ee� � ZdS )
� N)�StringIO)�PyTest�CTestc � � e Zd Zd� Zd� ZdS )�
TestIndentc
� � dgdgg dddddidd d
�g}t j d� � }| � |� � }| � |dd
d�� � }| � |dd
d�� � }| � |dd
�� � }| � |dd
�� � }| � |� � }| � |� � } | � |� � }
| � ||� � | � | |� � | � |
|� � | � ||� d� � � � | � ||� � | � ||� � | � ||� � 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)�,z: )�indent� sort_keys�
separators� )r r )�textwrap�dedent�dumps�loads�assertEqual�
expandtabs)�self�h�expect�d1�d2�d3�d4�d5�h1�h2�h3s �.D:\Python311\Lib\test\test_json\test_indent.py�test_indentzTestIndent.test_indent s� � ��[�8�*�b�+�{�M��r�]�e�%�@�@�
C�� �� "
� � ��* �Z�Z��]�]��
�Z�Z��!�t��Z�
L�
L��
�Z�Z��$�$�;�Z�
O�
O��
�Z�Z��!�t�Z�
4�
4��
�Z�Z��$�$�Z�
7�
7��
�Z�Z��^�^��
�Z�Z��^�^��
�Z�Z��^�^������Q��������Q��������Q��������V�.�.�q�1�1�2�2�2�����V�$�$�$�����R� � � �����R� � � � � � c �N � �� ddi��� fd�} |dd� � |d d� � d S )N� � c � �� �� �| �� � }�� ||� � t � � }�j � �|| �� � �� |� � � |� � d S )N)r )r r r �json�dump�getvalue)r �expectedr �sior r s ��r'