|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/simplejson/tests/ |
Upload File : |
�
6ȩSc @ sd d d l Z d d l m Z d d l Z d d l m Z m Z m Z m Z d e f d � � YZ
d S( i����N( t TestCase( t unichrt text_typet bt ut TestUnicodec B s� e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
d � Z d
� Z d � Z d � Z d � Z RS( c C sY t j d d � } d } | j d � } | j | � } | j | � } | j | | � d S( Nt encodings utf-8u αΩ( t jsont JSONEncodert encodet assertEqual( t selft encoderR t st jut js( ( sC /usr/lib64/python2.7/site-packages/simplejson/tests/test_unicode.pyt test_encoding1 s c C sS d } | j d � } t j | d d �} t j | d d �} | j | | � d S( Nu αΩs utf-8R ( R R t dumpsR
( R R R
R R ( ( sC /usr/lib64/python2.7/site-packages/simplejson/tests/test_unicode.pyt test_encoding2 s
c C s) d } t j | � } | j | d � d S( Nu αΩs "\u03b1\u03a9"( R R R
( R R t j( ( sC /usr/lib64/python2.7/site-packages/simplejson/tests/test_unicode.pyt test_encoding3 s c C s, d } t j | g � } | j | d � d S( Nu αΩs ["\u03b1\u03a9"]( R R R
( R R R ( ( sC /usr/lib64/python2.7/site-packages/simplejson/tests/test_unicode.pyt test_encoding4 s c C s7 d } t j | d t �} | j | d | d � d S( Nu αΩt ensure_asciiu "( R R t FalseR
( R R R ( ( sC /usr/lib64/python2.7/site-packages/simplejson/tests/test_unicode.pyt test_encoding5! s c C s: d } t j | g d t �} | j | d | d � d S( Nu αΩR u ["u "]( R R R R
( R R R ( ( sC /usr/lib64/python2.7/site-packages/simplejson/tests/test_unicode.pyt test_encoding6&