
]c           @   sk   d  d l  m Z m Z d   Z d e f d     YZ d e e f d     YZ d e e f d     YZ d	 S(
   i(   t   PyTestt   CTestc         C   s
   t  |   S(   N(   t   list(   t   obj(    (    s/   lib/python2.7/json/tests/test_check_circular.pyt   default_iterable   s    t   TestCheckCircularc           B   s5   e  Z d    Z d   Z d   Z d   Z d   Z RS(   c         C   s*   i  } | | d <|  j  t |  j |  d  S(   Nt   a(   t   assertRaisest
   ValueErrort   dumps(   t   selft   dct(    (    s/   lib/python2.7/json/tests/test_check_circular.pyt   test_circular_dict   s    
c         C   s-   g  } | j  |  |  j t |  j |  d  S(   N(   t   appendR   R   R	   (   R
   t   lst(    (    s/   lib/python2.7/json/tests/test_check_circular.pyt   test_circular_list   s    c         C   s;   i  } g  | d <| d j  |  |  j t |  j |  d  S(   NR   (   R   R   R   R	   (   R
   t   dct2(    (    s/   lib/python2.7/json/tests/test_check_circular.pyt   test_circular_composite   s    
c         C   s9   |  j  t   g d t |  j t |  j  t   g  d  S(   Nt   default(   R	   t   setR   R   t	   TypeError(   R
   (    (    s/   lib/python2.7/json/tests/test_check_circular.pyt   test_circular_default   s    c         C   sE   |  j  t   g d t d t |  j t |  j  t   g d t d  S(   NR   t   check_circular(   R	   R   R   t   FalseR   R   (   R
   (    (    s/   lib/python2.7/json/tests/test_check_circular.pyt   test_circular_off_default   s    (   t   __name__t
   __module__R   R   R   R   R   (    (    (    s/   lib/python2.7/json/tests/test_check_circular.pyR      s
   				t   TestPyCheckCircularc           B   s   e  Z RS(    (   R   R   (    (    (    s/   lib/python2.7/json/tests/test_check_circular.pyR   !   s    t   TestCCheckCircularc           B   s   e  Z RS(    (   R   R   (    (    (    s/   lib/python2.7/json/tests/test_check_circular.pyR   "   s    N(   t
   json.testsR    R   R   t   objectR   R   R   (    (    (    s/   lib/python2.7/json/tests/test_check_circular.pyt   <module>   s   	