/Vc@sRddlmZddlZddlZddlmZdefdYZdS(i(tTestCaseN(tStringIOt TestIndentcBs#eZdZdZdZRS(c Csdgdggdddidd6idd 6td 6g}tjd }tj|}tj|d d dtdd}tj|d ddtdd}tj|d ddtdd}tj|}tj|}tj|} tj|} |j|||j|||j| ||j| ||j||jd d|j||jd d|j||dS(Ntblorpietwhoopss d-shtaeous d-nthiouhs i-vhbjkhnthiWtniftytyestfieldt morefields3 [ [ "blorpie" ], [ "whoops" ], [], "d-shtaeou", "d-nthiouh", "i-vhbjkhnth", { "nifty": 87 }, { "field": "yes", "morefield": false } ]tindents t sort_keyst separatorst,s: s i(R s: (R s: (R s: ( tFalsettextwraptdedenttjsontdumpstTruetloadst assertEqualtreplace( tselfthtexpecttd1td2td3td4th1th2th3th4((sB/usr/lib64/python2.7/site-packages/simplejson/tests/test_indent.pyt test_indents(! !!!cs=idd6fd}|dd|dddS(Niics^tjd|}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.pyt test_indent08s  c Csddddg}d}d}|j|tj|ddd d |j|tj|ddd d|j|tj|dddS(Niiiis[ 1, 2, 3, 4 ]s[ 1, 2, 3, 4 ]R iR s, s: R (s, s: (R s: (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.pyts