| Server IP : 157.22.201.140 / Your IP : 216.73.216.74 Web Server : nginx/1.30.1 System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/simplejson/tests/__pycache__/ |
Upload File : |
�
"Ie
� �B � d dl mZ d dlZd dlZd dlmZ G d� de� Zy)� )�TestCaseN)�StringIOc � � e Zd Zd� Zd� Zd� Zy)�
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 |� }
| j ||� | j ||� | j | |� | j |
|� | j ||j
dd� � | j ||j
dd� � | 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��,�: )�indent� sort_keys�
separatorsz � )�textwrap�dedent�json�dumps�loads�assertEqual�replace)�self�h�expect�d1�d2�d3�d4�h1�h2�h3�h4s �>/usr/lib/python3/dist-packages/simplejson/tests/test_indent.py�test_indentzTestIndent.test_indent sF � ��[�8�*�b�+�{�
��r�]�e�%�@�
C�� ��� "
� ��, �Z�Z��]��
�Z�Z��$�$�;�
O��
�Z�Z��$�$�;�
O��
�Z�Z��!�t��
L��
�Z�Z��^��
�Z�Z��^��
�Z�Z��^��
�Z�Z��^������Q������Q������Q������Q������V�^�^�D�$�7�8�����V�^�^�D�$�7�8�
����V�$� c �@ � �� ddi��� fd�} |dd� |d d� y )N� � c �� �� t j �| �� }�j ||� t � }t j �|| �� �j |j � |� y )N�r )r r r r �dump�getvalue)r �expectedr! �sior r s ��r) �checkz&TestIndent.test_indent0.<locals>.check: sP �� ����A�f�-�B����R��*��*�C��I�I�a��V�,����S�\�\�^�X�6r+ r z
{
"3": 1
}z{"3": 1}� )r r5 r s ` @r) �test_indent0zTestIndent.test_indent08 s'