ok

Mini Shell

Direktori : /lib64/python2.7/site-packages/simplejson/tests/
Upload File :
Current File : //lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyc

�
���Sc@shddlZddlmaddlmZddlmZmZddlZdefd��YZ	dS(i����N(tDecimal(tTestCase(tStringIOt
reload_moduletTestDecimalcBsVeZd
Zd�Zd�Zd�Zd�Zd	�Zd
�Zd�Z	d�Z
RS(s1.0s10.00s1.1s1234567890.1234567890t500cKsHt�}tj|||�tj||�}|j||j��|S(N(RtjsontdumptdumpstassertEqualtgetvalue(tselftobjtkwtsiotres((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyR
s
	cKs>t|�}tj||�}|j|tj||��|S(N(RRtloadsR	tload(RtsR
RR((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyRscCsFx?tt|j�D]+}|j|j|dt�t|��qWdS(Ntuse_decimal(tmapRtNUMSR	RtTruetstr(Rtd((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyttest_decimal_encodescCs=x6|jD]+}|j|j|dt�t|��q
WdS(Ntparse_float(RR	RR(RR((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyttest_decimal_decodescCsixbtt|j�D]N}i||6}|j|j|j|dt�dt�i|t|�6�qWdS(NRR(RRRR	RRRR(RRtv((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyttest_stringify_keys
cCssxltt|j�D]X}xO||gi|d6gD]4}|j|j|j|dt�dt�|�q3WqWdS(NtRR(RRRR	RRR(RRR((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyttest_decimal_roundtrip's cCs�td�}|jttj|dt�|jdtj|��|jdtj|dt��|jttj|t	�dt�t	�}tj||�|jd|j
��t	�}tj||dt�|jd|j
��dS(Ns1.1R(RtassertRaisest	TypeErrorRRtFalseR	RRRR
(RRR((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyttest_decimal_defaults1s		cCs5tt�jaddl}t|j_|j�dS(Ni����(RtdecimalRtsimplejson.encodertencoderR(Rt
simplejson((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyttest_decimal_reload@s(s1.0s10.00s1.1s1234567890.1234567890s500(t__name__t
__module__RRRRRRRR#R((((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyRs						
	(
R$RtunittestRtsimplejson.compatRRR'RR(((sC/usr/lib64/python2.7/site-packages/simplejson/tests/test_decimal.pyt<module>s


Zerion Mini Shell 1.0