a  ze @sZddlZddlmZddlmZmZGdddZGdddeeZGdd d eeZdS) N)StringIO)PyTestCTestc@seZdZddZddZdS) TestIndentc Csdgdggdddddidd d g}td }||}|j|d d dd}|j|dd dd}|j|d d d}|j|dd d}||}||} ||} ||||| ||| ||||d |||||||||dS)NZblorpieZwhoopsz d-shtaeouz d-nthiouhz i-vhbjkhnthZniftyWZyesF)ZfieldZ morefielda3 [ [ "blorpie" ], [ "whoops" ], [], "d-shtaeou", "d-nthiouh", "i-vhbjkhnth", { "nifty": 87 }, { "field": "yes", "morefield": false } ]T),z: )indent sort_keysZ separators )r r )textwrapdedentdumpsloads assertEqual expandtabs) selfhexpectd1Zd2Zd3Zd4Zd5Zh1Zh2Zh3rN/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_json/test_indent.py test_indents&          zTestIndent.test_indentcs.ddifdd}|dd|dddS)NcsFj|d}||t}jj||d||dS)N)r )rrrZjsondumpgetvalue)r Zexpectedrsiorrrrcheck4s  z&TestIndent.test_indent0..checkrz { "3": 1 }z{"3": 1}r)rrrrr test_indent02s zTestIndent.test_indent0N)__name__ __module__ __qualname__rr rrrrrs+rc@s eZdZdS) TestPyIndentNr!r"r#rrrrr$Br$c@s eZdZdS) TestCIndentNr%rrrrr'Cr&r') r iorZtest.test_jsonrrrr$r'rrrrs  <