Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_json/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_json/__pycache__/test_indent.cpython-312.opt-2.pyc

�

)Μg ��l�ddlZddlmZddlmZmZGd�d�ZGd�dee�ZGd�d	ee�Zy)
�N)�StringIO)�PyTest�CTestc��eZdZd�Zd�Zy)�
TestIndentc
��dgdggdddddidd	d
�g}tjd�}|j|�}|j|dd
d��}|j|dd
d��}|j|dd
��}|j|dd
��}|j|�}|j|�}	|j|�}
|j	||�|j	|	|�|j	|
|�|j	||jd��|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�	)rr)�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_indentsC���[�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�|dd�y)N��c�����j�|��}�j||�t�}�jj	�||���j|j�|�y)N)r)rrr�json�dump�getvalue)r�expectedr�siorrs    ��r'�checkz&TestIndent.test_indent0.<locals>.check4sX������A�f��-�B����R��*��*�C��I�I�N�N�1�c�&�N�1����S�\�\�^�X�6r)rz
{
"3": 1
}z{"3": 1}�)rr3rs` @r'�test_indent0zTestIndent.test_indent02s'���
��F��	7�	�a�� �
�d�J�r)N)�__name__�
__module__�__qualname__r(r5r4r)r'rrs
��)!�V
 r)rc��eZdZy)�TestPyIndentN�r6r7r8r4r)r'r:r:B��r)r:c��eZdZy)�TestCIndentNr;r4r)r'r>r>Cr<r)r>)	r�ior�test.test_jsonrrrr:r>r4r)r'�<module>rAs/����(�9 �9 �x-�:�v�,�*�*�e�*r)

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists