Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/simplejson/tests/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyc


³Nc@s0ddlZddlZddlmZyddlmZWn=ek
r{defdYZdefdYZ	n(XeddgZedd	d
gZ	de
fdYZd
e
fdYZde
fdYZ
defdYZdddgZdejfdYZdS(iN(tStringIO(t
namedtupletValuecBseZdZdZRS(cGstj||S(N(ttuplet__new__(tclstargs((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR	scCsi|dd6S(Nitvalue((tself((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyt_asdicts(t__name__t
__module__RR	(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyRs	tPointcBseZdZdZRS(cGstj||S(N(RR(RR((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyRscCsi|dd6|dd6S(Nitxity((R((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR	s(R
RRR	(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyRs	RR
Rt	DuckValuecBseZdZdZRS(cGst||_dS(N(RR(RR((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyt__init__scCs
|jjS(N(RR	(R((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR	s(R
RRR	(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyRs	t	DuckPointcBseZdZdZRS(cGst||_dS(N(Rtpoint(RR((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR scCs
|jjS(N(RR	(R((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR	#s(R
RRR	(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyRs	tDeadDuckcBseZdZRS(N(R
RtNoneR	(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR&stDeadDictcBseZdZRS(N(R
RRR	(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR)scCs|S(N((tv((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyt<lambda>-scCs|gS(N((R((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR.scCsi|d6gS(Ntkey((R((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR/stTestNamedTuplecBs>eZdZdZdZdZdZdZRS(c
CsxtdtddtdtddgD]}|j}|j|tjtj||j|tjtj|dt	|j|tjtj|dt
|j|tjtj|dt	dt
q1WdS(Niitnamedtuple_as_objectttuple_as_array(RRRRR	tassertEqualtjsontloadstdumpstTruetFalse(RRtd((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyttest_namedtuple_dumps3s7"(c	CsxytdtddgD]\}t|}|j|tjtj|dt|jt	tj|dtdtqWdS(NiiRR(
RRtlistRRRRR!tassertRaisest	TypeError(RRtl((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyttest_namedtuple_dumps_false@s"cCsCx<tdtddtdtddgD]
}|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!(RRR"tsio((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyttest_namedtuple_dumpIs&7				c
CsxtdtddgD]x}t|}t}tj||dt|j|tj|j	|j
ttj|tdtdtqWdS(NiiRR(RRR$RRR)R!RRR*R%R&(RRR'R+((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyttest_namedtuple_dump_false^s"	cCsxtD]~}|jttj|ttdtt}tj|t|dt|j	tj
|i|jqWdS(NR(tCONSTRUCTORSR%R&RR)RRR RRRR*(RtfR+((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyttest_asdict_not_callable_dumpis
	"	cCsqxjtD]b}|jttj|tdt|jtj|itj|tdtqWdS(NR(	R.R%R&RRRR RR(RR/((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyttest_asdict_not_callable_dumpsss
	(R
RR#R(R,R-R0R1(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyR2s	
					
(tunittestt
simplejsonRRtcollectionsRtImportErrorRRRtobjectRRRtdictRR.tTestCaseR(((sD/usr/lib/python2.7/dist-packages/simplejson/tests/test_namedtuple.pyt<module>s"