ó
l4Vdc           @   s6   d  d l  m Z d  d l Z d e f d     YZ d S(   i’’’’(   t   TestCaseNt   TestBigintAsStringc        	   B   sd   e  Z d d d d d d d d" g Z i e d 6i d d 6f Z d   Z d   Z d   Z d   Z RS(#   iČ   i   i5   I’’’’’’ t   9007199254740992t   9007199254740993i’’’i’’’’s   -9007199254740992s   -9007199254740993I     ą’t   bigint_as_stringt   int_as_string_bitcountc         C   sy   xr |  j  D]g } x^ |  j D]S \ } } |  j | t j t j |    |  j | t j t j | |    q Wq
 Wd  S(   N(   t   optionst   valuest   assertEqualt   jsont   loadst   dumps(   t   selft   optst   valt   expect(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/test_bigint_as_string.pyt	   test_ints   s    c         C   s   x |  j  D] } xv |  j D]k \ } } | | g } | | g } |  j | t j t j |    |  j | t j t j | |    q Wq
 Wd  S(   N(   R   R   R   R	   R
   R   (   R   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/test_bigint_as_string.pyt
   test_lists!   s    c         C   s   x |  j  D] } xx |  j D]m \ } } i | d 6} i | d 6} |  j | t j t j |    |  j | t j t j | |    q Wq
 Wd  S(   Nt   k(   R   R   R   R	   R
   R   (   R   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/test_bigint_as_string.pyt
   test_dicts-   s    c         C   s   x |  j  D] } x~ |  j D]s \ } } i d t |  6} i d | 6} |  j | t j t j |    |  j | t j t j | |    q Wq
 Wd  S(   Nt   value(   R   R   t   strR   R	   R
   R   (   R   R   R   t   _R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/test_bigint_as_string.pyt   test_dict_keys9   s    (   iČ   iČ   I        I’’’’’’ (   I’’’’’’ I’’’’’’ I        (   I        R   I        I       (   I       R   (   i’’’i’’’I      ą’(   I      ą’s   -9007199254740992I      ą’I’’’’’’ß’(   I’’’’’’ß’s   -9007199254740993I      ą’I     ą’(   I     ą’I     ą’(	   t   __name__t
   __module__R   t   TrueR   R   R   R   R   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/test_bigint_as_string.pyR      s   	
	
		(   t   unittestR    t
   simplejsonR	   R   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/simplejson/tests/test_bigint_as_string.pyt   <module>   s   