a  ze'@sNddlZddlmZmZGdddZGdddeeZGdddeeZdS) N)PyTestCTestc@seZdZddZddZdS)TestSeparatorsc Csdgdggdddddidd d g}td }||}|j|d d dd}||}||}|||||||||dS)NZblorpieZwhoopsz d-shtaeouz d-nthiouhz i-vhbjkhnthZniftyWZyesF)ZfieldZ morefieldaT [ [ "blorpie" ] , [ "whoops" ] , [] , "d-shtaeou" , "d-nthiouh" , "i-vhbjkhnth" , { "nifty" : 87 } , { "field" : "yes" , "morefield" : false } ]T)z ,z : )indentZ sort_keys separators)textwrapdedentdumpsloadsZ assertEqual)selfhexpectZd1Zd2Zh1Zh2rR/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_json/test_separators.pytest_separatorss      zTestSeparators.test_separatorscCsJddd}|jt|j|dd|jt|j|dd|jt|j|dddS)Nr)), z: )r)z, : )rr)Z assertRaises TypeErrorr )r rrrrtest_illegal_separators*s z&TestSeparators.test_illegal_separatorsN)__name__ __module__ __qualname__rrrrrrrs$rc@s eZdZdS)TestPySeparatorsNrrrrrrrr1rc@s eZdZdS)TestCSeparatorsNrrrrrr 2rr )r Ztest.test_jsonrrrrr rrrrs,