FsY 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 )Nblorpiewhoopsz d-shtaeouz d-nthiouhzi-vhbjkhnthniftyW yesF)field morefielda3 [
[
"blorpie"
],
[
"whoops"
],
[],
"d-shtaeou",
"d-nthiouh",
"i-vhbjkhnth",
{
"nifty": 87
},
{
"field": "yes",
"morefield": false
}
] T,: )indent sort_keys
separatorsz )textwrapdedentjsondumpsloadsassertEqualreplace)selfhexpectd1d2d3d4h1h2h3h4s ~/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/simplejson/tests/test_indent.pytest_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^^QQQQV^^D$77888V^^D$77888
V$$$$$ c N ddi fd} |dd |d d d S )N c t j | } || t }t j || | | d S )Nr )r r r r dumpgetvalue)r expectedr! sior r s r) checkz&TestIndent.test_indent0.