ó
l4Vdc           @@  sů   d  d l  m Z d  d l Z d  d l Z d  d l Z d e j f d     YZ d e j f d     YZ d d  Z
 d   Z d	   Z e d
 k rő d  d l Z d  d l Z e j j d  e j j e j j e j j e j j e      e   n  d S(   i    (   t   absolute_importNt   NoExtensionTestSuitec           B@  s   e  Z d    Z RS(   c         C@  s?   d d  l  } | j t  t j j |  |  } | j t  | S(   Ni    (   t
   simplejsont   _toggle_speedupst   Falset   unittestt	   TestSuitet   runt   True(   t   selft   resultR   (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyR      s
    (   t   __name__t
   __module__R   (    (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyR      s   t   TestMissingSpeedupsc           B@  s   e  Z d    Z RS(   c         C@  s5   t  t d  r n t  |  d  r1 |  j d  n  d  S(   Nt   pypy_translation_infot   skipTests   _speedups.so is missing!(   t   hasattrt   sysR   (   R	   (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyt   runTest   s    (   R   R   R   (    (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyR      s   c         C@  s   d d  l  } d d  l } d d  l } |  d  k r? t j   }  n  x3 | | j | j f D] } |  j t	 j
 |   qU W|  j t	 j d   |  S(   Ni    s   ../../index.rst(   R   t   simplejson.encodert   simplejson.decodert   NoneR   R   t   encodert   decodert   addTestt   doctestt   DocTestSuitet   DocFileSuite(   t   suiteR   t   mod(    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyt   additional_tests   s    c          C@  sh   d   }  |    } d d  l  } | j   d  k rC | j t    n! t j | t |    g  g  } | S(   Nc           S@  sj   t  t j   j d d d d d d d d d	 d
 d d d d d d d d d d d d d d d d d g   S(   Ns+   simplejson.tests.test_bitsize_int_as_strings&   simplejson.tests.test_bigint_as_strings$   simplejson.tests.test_check_circulars   simplejson.tests.test_decodes   simplejson.tests.test_defaults   simplejson.tests.test_dumps-   simplejson.tests.test_encode_basestring_asciis%   simplejson.tests.test_encode_for_htmls   simplejson.tests.test_errorss   simplejson.tests.test_fails   simplejson.tests.test_floats   simplejson.tests.test_indents   simplejson.tests.test_iterables   simplejson.tests.test_pass1s   simplejson.tests.test_pass2s   simplejson.tests.test_pass3s   simplejson.tests.test_recursions    simplejson.tests.test_scanstrings    simplejson.tests.test_separatorss   simplejson.tests.test_speedupss   simplejson.tests.test_unicodes   simplejson.tests.test_decimals   simplejson.tests.test_tuples    simplejson.tests.test_namedtuples   simplejson.tests.test_tools   simplejson.tests.test_for_jsons   simplejson.tests.test_subclass(   R   R   t
   TestLoadert   loadTestsFromNames(    (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyt	   get_suite%   s:    i    (   R   t   _import_c_make_encoderR   R   R   R   R   R   (   R!   R   R   (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyt   all_tests_suite$   s    		c          C@  sK   t  j d d t j j d   }  t   } t |  j |  j     d  S(   Nt	   verbosityi   s   -v(	   R   t   TextTestRunnerR   t   argvt   countR#   t
   SystemExitR   t   wasSuccessful(   t   runnerR   (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyt   mainP   s    "	t   __main__(   t
   __future__R    R   R   R   R   R   t   TestCaseR   R   R   R#   R+   R   t   ost   patht   insertt   dirnamet   abspatht   __file__(    (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/__init__.pyt   <module>   s   		,	C