Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
simplejson
/
tests
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/simplejson/tests/test_unicode.pyo
mò #œœIc @ s0 d k l Z d k Z d e f d „ ƒ YZ d S( ( s TestCaseNt TestUnicodec B sk t Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nc C sY t i d d ƒ } d } | i d ƒ } | i | ƒ } | i | ƒ } | i | | ƒ d S( Nt encodings utf-8u αΩ( t jsont JSONEncodert encodert ut encodet st jut jst selft assertEquals( R R R R R R ( ( tA /usr/lib/python2.4/site-packages/simplejson/tests/test_unicode.pyt test_encoding1 s c C sS d } | i d ƒ } t i | d d ƒ} t i | d d ƒ} | i | | ƒ d S( Nu αΩs utf-8R ( R R R R t dumpsR R R R ( R R R R R ( ( R t test_encoding2 s c C s) d } t i | ƒ } | i | d ƒ d S( Nu αΩs "\u03b1\u03a9"( R R R t jR R ( R R R ( ( R t test_encoding3 s c C s, d } t i | g ƒ } | i | d ƒ d S( Nu αΩs ["\u03b1\u03a9"]( R R R R R R ( R R R ( ( R t test_encoding4 s c C s6 d } t i | d t ƒ} | i | d | f ƒ d S( Nu αΩt ensure_asciiu "%s"( R R R t FalseR R R ( R R R ( ( R t test_encoding5 s c C s9 d } t i | g d t ƒ} | i | d | f ƒ d S( Nu αΩR u ["%s"]( R R R R R R R ( R R R ( ( R t test_encoding6$ s c C sB d } | i t i | ƒ d ƒ | i t i | d t ƒd ƒ d S( Nu ð„ s "\ud834\udd20"R u "ð„ "( R R R R R R ( R R ( ( R t test_big_unicode_encode) s c C sD d } | i t i d | d ƒ | ƒ | i t i d ƒ | ƒ d S( Nu zð„ xt "s "z\ud834\udd20x"( R R R R t loads( R R ( ( R t test_big_unicode_decode. s !c C sP xI t d d ƒ D]8 } t | ƒ } d | f } | i t i | ƒ | ƒ q Wd S( Ni iÿ× s "\u%04x"( t ranget it unichrR R R R R R ( R R R R ( ( R t test_unicode_decode3 s c C s/ | i t i d i d ƒ ƒ h d d <ƒ d S( Nu {"a": "é"}s utf-8t au é( R R R R R ( R ( ( R t test_default_encoding9 s c C se | i t t i d ƒ ƒ t ƒ | i t t i d ƒ ƒ t ƒ | i t t i d ƒ d ƒ t ƒ d S( Nu ""u "a"u ["a"]i ( R R t typeR R t unicode( R ( ( R t test_unicode_preservation= s ( t __name__t __module__R R R R R R R R R R R# ( ( ( R R s ( t unittestt TestCaset simplejsonR R ( R' R R ( ( R t ? s