ó
¦xxTc           @   s~   d  d l  Z  d  d l m Z d  d l m Z m Z d e f d „  ƒ  YZ d e e f d „  ƒ  YZ d e e f d	 „  ƒ  YZ d S(
   iÿÿÿÿN(   t   StringIO(   t   PyTestt   CTestt
   TestIndentc           B   s   e  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 ƒ } |  j | ƒ } |  j | d d d t d d ƒ} |  j | ƒ } |  j | ƒ } |  j | | ƒ |  j | | ƒ |  j | | ƒ d  S(   Nt   blorpiet   whoopss	   d-shtaeous	   d-nthiouhs   i-vhbjkhnthiW   t   niftyt   yest   fieldt	   morefieldsI          [
          [
            "blorpie"
          ],
          [
            "whoops"
          ],
          [],
          "d-shtaeou",
          "d-nthiouh",
          "i-vhbjkhnth",
          {
            "nifty": 87
          },
          {
            "field": "yes",
            "morefield": false
          }
        ]t   indenti   t	   sort_keyst
   separatorst   ,s   : (   R   s   : (   t   Falset   textwrapt   dedentt   dumpst   Truet   loadst   assertEqual(   t   selft   ht   expectt   d1t   d2t   h1t   h2(    (    sB   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/json/tests/test_indent.pyt   test_indent   s    !	!c            s=   i d d 6‰  ‡  ‡ f d †  } | d d ƒ | d  d ƒ d  S(   Ni   i   c            sa   ˆ j  ˆ  d |  ƒ} ˆ j | | ƒ t ƒ  } ˆ j j ˆ  | d |  ƒˆ j | j ƒ  | ƒ d  S(   NR
   (   R   R   R    t   jsont   dumpt   getvalue(   R
   t   expectedR   t   sio(   R   R   (    sB   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/json/tests/test_indent.pyt   check-   s
    	i    s
   {
"3": 1
}s   {"3": 1}(   t   None(   R   R"   (    (   R   R   sB   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/json/tests/test_indent.pyt   test_indent0+   s    	(   t   __name__t
   __module__R   R$   (    (    (    sB   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/json/tests/test_indent.pyR      s   	$t   TestPyIndentc           B   s   e  Z RS(    (   R%   R&   (    (    (    sB   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/json/tests/test_indent.pyR'   ;   s    t   TestCIndentc           B   s   e  Z RS(    (   R%   R&   (    (    (    sB   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/json/tests/test_indent.pyR(   <   s    (	   R   R    t
   json.testsR   R   t   objectR   R'   R(   (    (    (    sB   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/json/tests/test_indent.pyt   <module>   s
   5