https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/simplejson/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/simplejson/tests/__pycache__/test_indent.cpython-310.pyc
o

\Փa
�@s<ddlmZddlZddlZddlmZGdd�de�ZdS)�)�TestCaseN)�StringIOc@s$eZdZdd�Zdd�Zdd�ZdS)�
TestIndentc
Cs�dgdggdddddidd	d
�g}t�d�}t�|�}tj|dd
dd�}tj|dd
dd�}tj|dd
dd�}t�|�}t�|�}t�|�}	t�|�}
|�||�|�||�|�|	|�|�|
|�|�||�dd��|�||�dd��|�||�dS)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�h4�r&�>/usr/lib/python3/dist-packages/simplejson/tests/test_indent.py�test_indents(�





zTestIndent.test_indentcs.ddi���fdd�}|dd�|dd�dS)N��csDtj�|d�}��||�t�}tj�||d���|��|�dS)N�r)rrrr�dump�getvalue)r�expectedr�sio�rrr&r'�check:s
z&TestIndent.test_indent0.<locals>.checkrz
{
"3": 1
}z{"3": 1}r&)rr1r&r0r'�test_indent08s
	zTestIndent.test_indent0cCsZgd�}d}d}|�|tj|ddd��|�|tj|ddd��|�|tj|dd��dS)	N)r*rr)�z[
1,
2,
3,
4
]z[
1, 
2, 
3, 
4
]r)z, r)rrr
r+)rrr)r�lstr�
expect_spacesr&r&r'�test_separatorsGs���zTestIndent.test_separatorsN)�__name__�
__module__�__qualname__r(r2r6r&r&r&r'rs0r)�unittestrr�
simplejsonr�simplejson.compatrrr&r&r&r'�<module>s


https://t.me/RX1948 - 2025