File: //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyo
�
��bNc @ s6 d d l m Z d d l Z d e f d � � YZ d S( i����( t TestCaseNt
TestErrorsc B s# e 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 t bg @t cs D tuplet d( i i ( R ( t assertRaisest TypeErrort jsont dumps( t selft data( ( sO /opt/alt/python27/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
r5 } | } n X| j d � | j | j d � | j | j d � | j | j d � | j | j d � d S( Ns {}
a
bs Expected JSONDecodeErrori i i (
t NoneR t loadst JSONDecodeErrort failt assertEqualst linenot colnot endlinenot endcolno( R t errt e( ( sO /opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyt test_decode_error
s
c C s� d } x} t t f D]o } y t j | d � � Wn t j k
rN } | } n X| j d � | j | j d � | j | j d � q Wd S( Ns
{"asdf": "s Expected JSONDecodeErrori i (
R t strt unicodeR R R R R R R ( R R t tR ( ( sO /opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyt test_scan_error s
( t __name__t
__module__R
R R ( ( ( sO /opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyR s
( t unittestR t
simplejsonR R ( ( ( sO /opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_errors.pyt <module> s