ó
]c           @   sv  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l m Z e j d d d g Z e j d d d g Z	 d e j
 f d     YZ e j e d	  d
 e j
 f d     Y Z d e f d     YZ d e f d     YZ e  j j e  Z d   Z d   Z d   Z e d k rre j j d e  j j e  j j e  j j e  j j e      e   n  d S(   i’’’’N(   t   test_supportt   jsont   fresht   _jsont   blockedt   PyTestc           B   s,   e  Z e Z e e j  Z e e j  Z RS(    (   t   __name__t
   __module__t   pyjsonR   t   staticmethodt   loadst   dumps(    (    (    s$   lib/python2.7/json/tests/__init__.pyR      s   s   requires _jsont   CTestc           B   s;   e  Z e d  k	 r9 e Z e e j  Z e e j  Z n  RS(   N(   R   R   t   cjsont   NoneR   R	   R
   R   (    (    (    s$   lib/python2.7/json/tests/__init__.pyR      s   t
   TestPyTestc           B   s   e  Z d    Z RS(   c         C   sX   |  j  |  j j j j d  |  j  |  j j j j d  |  j  |  j j j j d  d  S(   Ns   json.scanners   json.decoders   json.encoder(	   t   assertEqualR   t   scannert   make_scannerR   t   decodert
   scanstringt   encodert   encode_basestring_ascii(   t   self(    (    s$   lib/python2.7/json/tests/__init__.pyt   test_pyjson   s    (   R   R   R   (    (    (    s$   lib/python2.7/json/tests/__init__.pyR      s   t	   TestCTestc           B   s   e  Z d    Z RS(   c         C   st   |  j  |  j j j j d  |  j  |  j j j j d  |  j  |  j j j j d  |  j  |  j j j	 j d  d  S(   NR   (
   R   R   R   R   R   R   R   R   t   c_make_encoderR   (   R   (    (    s$   lib/python2.7/json/tests/__init__.pyt
   test_cjson%   s
    (   R   R   R   (    (    (    s$   lib/python2.7/json/tests/__init__.pyR   $   s   c          C   s   t    }  t j   } xs t j t  D]b } | j d  r% | j d  r% d | d  } t |  t	 j
 | } |  j | j |   q% q% W|  S(   Nt   tests   .pys   json.tests.iż’’’(   t   additional_testst   unittestt
   TestLoadert   ost   listdirt   heret
   startswitht   endswitht
   __import__t   syst   modulest   addTestst   loadTestsFromModule(   t   suitet   loadert   fnt   modnamet   module(    (    s$   lib/python2.7/json/tests/__init__.pyt
   test_suite/   s    	
c          C   sl   t  j   }  x3 t t j t j f D] } |  j t j |   q" W|  j t d   |  j t	 d   |  S(   NR   R   (
   R   t	   TestSuiteR   R   R   t   addTestt   doctestt   DocTestSuiteR   R   (   R*   t   mod(    (    s$   lib/python2.7/json/tests/__init__.pyR   :   s    c          C   s&   t    }  t j   } | j |   d  S(   N(   R/   R   t   TextTestRunnert   run(   R*   t   runner(    (    s$   lib/python2.7/json/tests/__init__.pyt   mainB   s    	t   __main__i    (   R    R&   R   R2   R   R   R    t   import_fresh_moduleR   R   t   TestCaseR   t
   skipUnlessR   R   R   t   patht   dirnamet   __file__R"   R/   R   R8   R   t   insertt   abspath(    (    (    s$   lib/python2.7/json/tests/__init__.pyt   <module>   s&   					C