Current Path : /usr/lib/python2.7/dist-packages/simplejson/tests/ |
Current File : //usr/lib/python2.7/dist-packages/simplejson/tests/test_indent.pyc |
ó Æ„Nc @ sR d d l m Z d d l Z d d l Z d d l m Z d e f d „ ƒ YZ d S( iÿÿÿÿ( t TestCaseN( t StringIOt TestIndentc B s# e Z d „ Z d „ Z d „ Z RS( c C s‚ d g d g g d d d i d d 6i d d 6t d 6g } t j d ƒ } t j | ƒ } t j | d d d t d d ƒ} t j | d d d t d d ƒ} t j | d d d t d d ƒ} t j | ƒ } t j | ƒ } t j | ƒ } t j | ƒ } | j | | ƒ | j | | ƒ | j | | ƒ | j | | ƒ | j | | j d d ƒ ƒ | j | | j d d ƒ ƒ | j | | ƒ d S( Nt blorpiet whoopss d-shtaeous d-nthiouhs i-vhbjkhnthiW t niftyt yest fieldt morefields3 [ [ "blorpie" ], [ "whoops" ], [], "d-shtaeou", "d-nthiouh", "i-vhbjkhnth", { "nifty": 87 }, { "field": "yes", "morefield": false } ]t indents t sort_keyst separatorst ,s : s i ( R s : ( R s : ( R s : ( t Falset textwrapt dedentt jsont dumpst Truet loadst assertEqualst replace( t selft ht expectt d1t d2t d3t d4t h1t h2t h3t h4( ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_indent.pyt test_indent s( ! !!!c s= i d d 6‰ ‡ ‡ f d † } | d d ƒ | d d ƒ d S( Ni i c s^ t j ˆ d | ƒ} ˆ j | | ƒ t ƒ } t j ˆ | d | ƒˆ j | j ƒ | ƒ d S( NR ( R R R R t dumpt getvalue( R t expectedR t sio( R R ( s@ /usr/lib/python2.7/dist-packages/simplejson/tests/test_indent.pyt check: s i s { "3": 1 }s {"3": 1}( t None( R R&