ok
Direktori : /proc/self/root/usr/lib64/python2.7/site-packages/simplejson/tests/ |
Current File : //proc/self/root/usr/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyc |
� ���Sc @ sd d d l Z d d l Z d d l m Z d d l Z d d l m Z m Z d e f d � � YZ d S( i����N( t TestCase( t ut bt TestErrorsc B s, e Z d � Z d � Z d � Z d � Z RS( c C s? i d d 6d d 6d d 6d d 6g } | j t t j | � d S( Nt At ai i R g @t cs D tuplet d( i i ( R ( t assertRaisest TypeErrort jsont dumps( t selft data( ( sB /usr/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyt test_string_keys_error s %c C s� d } y t j d � Wn$ t j k r= t j � d } n X| j d � | j | j d � | j | j d � | j | j d � | j | j d � d S( Ns {} a bi s Expected JSONDecodeErrori i ( t NoneR t loadst JSONDecodeErrort syst exc_infot failt assertEqualt linenot colnot endlinenot endcolno( R t err( ( sB /usr/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyt test_decode_error s c C s� d } x� t t f D]w } y t j | d � � Wn$ t j k rV t j � d } n X| j d � | j | j d � | j | j d � q Wd S( Ns {"asdf": "i s Expected JSONDecodeErrori ( R R R R R R R R R R R R ( R R t t( ( sB /usr/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyt test_scan_error s c C s� d } y t j d � Wn$ t j k r= t j � d } n X| j d � t j | � } t j | � } | j | j | j � | j | j | j � | j | j | j � | j | j | j � d S( Ns {} a bi s Expected JSONDecodeError( R R R R R R R t pickleR R t msgt doct post end( R R t st e( ( sB /usr/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyt test_error_is_pickable% s ( t __name__t __module__R R R R% ( ( ( sB /usr/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyR s ( R R t unittestR t simplejsonR t simplejson.compatR R R ( ( ( sB /usr/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyt <module> s