| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 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 : |
�
$��c
� �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 �>/usr/lib/python3/dist-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<