Spade
Mini Shell
| Directory:~$ /proc/self/root/usr/lib64/python2.7/site-packages/simplejson/tests/ |
| [Home] [System Details] [Kill Me] |
�
��/Vc@sRddlmZddlZddlZddlmZdefd��YZdS(i����(tTestCaseN(tStringIOt
TestIndentcBs#eZd�Zd�Zd�ZRS(c
Cs�dgdggdddidd6idd 6td
6g}tjd�}tj|�}tj|dd
dtdd�}tj|dddtdd�}tj|dddtdd�}tj|�}tj|�}tj|�} tj|�}
|j||�|j||�|j| |�|j|
|�|j||jd
d��|j||jd
d��|j||�dS(Ntblorpietwhoopss d-shtaeous d-nthiouhsi-vhbjkhnthiWtniftytyestfieldt morefields3
[
[
"blorpie"
],
[
"whoops"
],
[],
"d-shtaeou",
"d-nthiouh",
"i-vhbjkhnth",
{
"nifty": 87
},
{
"field": "yes",
"morefield": false
}
]tindents t sort_keyst
separatorst,s: s i(Rs: (Rs: (Rs:
( tFalsettextwraptdedenttjsontdumpstTruetloadstassertEqualtreplace(tselfthtexpecttd1td2td3td4th1th2th3th4((sB/usr/lib64/python2.7/site-packages/simplejson/tests/test_indent.pyttest_indents(! !!!cs=idd6���fd�}|dd�|dd�dS(Niics^tj�d|�}�j||�t�}tj�|d|��j|j�|�dS(NR (RRRRtdumptgetvalue(R texpectedRtsio(RR(sB/usr/lib64/python2.7/site-packages/simplejson/tests/test_indent.pytcheck:s
is
{
"3": 1
}s{"3":
1}(tNone(RR&((RRsB/usr/lib64/python2.7/site-packages/simplejson/tests/test_indent.pyttest_indent08s
c Cs�ddddg}d}d}|j|tj|ddd d
��|j|tj|ddd d��|j|tj|dd��dS(Niiiis[
1,
2,
3,
4
]s[
1,
2,
3,
4
]R iRs, s: R(s, s: (Rs:
(RRR(RtlstRt
expect_spaces((sB/usr/lib64/python2.7/site-packages/simplejson/tests/test_indent.pyttest_separatorsGs(t__name__t
__module__R!R(R+(((sB/usr/lib64/python2.7/site-packages/simplejson/tests/test_indent.pyRs 0 (tunittestRRt
simplejsonRtsimplejson.compatRR(((sB/usr/lib64/python2.7/site-packages/simplejson/tests/test_indent.pyt<module>s