ok
Direktori : /lib64/python2.7/site-packages/simplejson/tests/ |
Current File : //lib64/python2.7/site-packages/simplejson/tests/test_unicode.pyc |
� ���Sc @ sv d d l Z d d l Z d d l m Z d d l Z d d l m Z 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 BytesIOt 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 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"