Spade
Mini Shell
| Directory:~$ /proc/self/root/usr/lib64/python2.7/site-packages/simplejson/tests/ |
| [Home] [System Details] [Kill Me] |
�
���Sc@@s@ddlmZddlZddlZddlmZyddlmZWn=e k
r�de
fd��YZde
fd��YZn(Xedd g�Zedd
dg�Zde
fd
��YZde
fd��YZde
fd��YZdefd��YZd�d�d�gZdejfd��YZdS(i(tabsolute_importN(tStringIO(t
namedtupletValuecB@seZd�Zd�ZRS(cG@stj||�S(N(ttuplet__new__(tclstargs((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR
scC@si|dd6S(Nitvalue((tself((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyt_asdict
s(t__name__t
__module__RR
(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR s tPointcB@seZd�Zd�ZRS(cG@stj||�S(N(RR(RR((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyRscC@si|dd6|dd6S(Nitxity((R ((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR
s(RRRR
(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR
s RRRt DuckValuecB@seZd�Zd�ZRS(cG@st|�|_dS(N(RR(R R((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyt__init__scC@s
|jj�S(N(RR
(R ((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR
s(RRRR
(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyRs t DuckPointcB@seZd�Zd�ZRS(cG@st|�|_dS(N(R
tpoint(R R((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR!scC@s
|jj�S(N(RR
(R ((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR
$s(RRRR
(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR
s tDeadDuckcB@seZdZRS(N(RRtNoneR
(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR'stDeadDictcB@seZdZRS(N(RRRR
(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR*scC@s|S(N((tv((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyt<lambda>.scC@s|gS(N((R((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR/scC@si|d6gS(Ntkey((R((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR0stTestNamedTuplecB@s>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(c
C@s�x�td�tdd�td�tdd�gD]�}|j�}|j|tjtj|���|j|tjtj|dt ���|j|tjtj|dt
���|j|tjtj|dt dt
���q1WdS(Niitnamedtuple_as_objectttuple_as_array(RR
RRR
tassertEqualtjsontloadstdumpstTruetFalse(R Rtd((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyttest_namedtuple_dumps4s7"(c C@s�xytd�tdd�gD]\}t|�}|j|tjtj|dt���|jt tj|dtdt�qWdS(NiiRR(
RR
tlistRRRR
R"tassertRaisest TypeError(R Rtl((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyttest_namedtuple_dumps_falseAs"cC@sCx<td�tdd�td�tdd�gD]
}|j�}t�}tj||�|j|tj |j
���t�}tj||dt�|j|tj |j
���t�}tj||dt�|j|tj |j
���t�}tj||dtdt�|j|tj |j
���q1WdS(NiiRR(
RR
RRR
RRtdumpRRtgetvalueR!R"(R RR#tsio((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyttest_namedtuple_dumpJs&7 c
C@s�x�td�tdd�gD]x}t|�}t�}tj||dt�|j|tj|j ���|j
ttj|t�dtdt�qWdS(NiiRR(RR
R%RRR*R"RRR+R&R'(R RR(R,((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyttest_namedtuple_dump_false_s" cC@s�x�tD]~}|jttj|t��t�dt�t�}tj|t��|dt�|j tj
|i��|j��qWdS(NR(tCONSTRUCTORSR&R'RR*RRR!RRR
R+(R tfR,((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyttest_asdict_not_callable_dumpjs
" cC@sqxjtD]b}|jttj|t��dt�|jtj|i��tj|t��dt��qWdS(NR( R/R&R'RR
RR!RR(R R0((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyttest_asdict_not_callable_dumpsts
(RRR$R)R-R.R1R2(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyR3s
(t
__future__Rtunittestt
simplejsonRtsimplejson.compatRtcollectionsRtImportErrorRRR
tobjectRRRtdictRR/tTestCaseR(((sF/usr/lib64/python2.7/site-packages/simplejson/tests/test_namedtuple.pyt<module>s$