ok
Direktori : /lib64/python2.7/site-packages/simplejson/tests/ |
Current File : //lib64/python2.7/site-packages/simplejson/tests/test_indent.pyc |
� ��/Vc @ 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 assertEqualt replace( t selft ht expectt d1t d2t d3t d4t h1t h2t h3t h4( ( sB /usr/lib64/python2.7/site-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 ( sB /usr/lib64/python2.7/site-packages/simplejson/tests/test_indent.pyt check: s i s { "3": 1 }s {"3": 1}( t None( R R&