%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyo

�
�2xQc@s|ddlmZdejfd��YZdefd��YZdd�Zedkrxdd	lmZe�e�nd
S(i����(tsupporttTestCasecBseZRS((t__name__t
__module__(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyRst	FirstCasecBseeZd�Zd�Zd�Zd�Zd�Zd�Zdd�Zd�Z	d	�Z
d
�ZRS(cCs�|jj}d|_|jdddddd�}|j|j@}||}dd
d	��Y}|j|jg�}d
dl}|jd�}x\dD]T}	t	||	j
�}
t|
�}|j|||	j
�|j||@||	�q�WdS(Nshp.ittasdfg333333@g������
@itCcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR-si����tRcsi((ii(
theapytUsetreprefixtisotTypetSizet__dict__ttypestbytreprtkindtevaltaseq(tselfthptattstkRtdiRtdbtitrktek((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_1s	

c
Cs|jj}d|_dd"d��Y}dtfd��Y}|�}|�}ddl}x<d#D]4}t|�}t|�}	|jt|	�|�qcWxxtd$�D]j\}
}|
d }t|�}t	|j
�d!}|j|j|�t|�}	|jt|	�|�q�WdS(%s, Systematically test all kind constructors: shp.RcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyREstTcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR!Hsi����Nshp.Class(C)shp.Class(C).dictofshp.Clodo(dictof=C)shp.Clodo(dictof=T)shp.Clodo(dictof=())shp.Clodo(C)shp.Clodo(T)shp.Id(id(c))shp.Module("sys")s&hp.Rcs(hp.Clodo.sokind(int)(dictof=C))shp.Size(hp.iso(c).indisize)s"hp.Size(hp.iso(C).indisize).dictofs
hp.Type(T)shp.Type(int)s
hp.Unity()shp.Via()s
hp.Via('_.x')shp.Via('_[0]')shp.Via('_.keys()[0]')shp.Via('_->abc')shp.Via('_.__dict__.keys()[0]')shp.Via('_.f_locals["abc"]')shp.Via('_.f_locals ["abc"]')shp.Via('_->f_valuestack[0]')ii((shp.Class(C)shp.Class(C).dictofshp.Clodo(dictof=C)shp.Clodo(dictof=T)shp.Clodo(dictof=())shp.Clodo(C)shp.Clodo(T)shp.Id(id(c))shp.Module("sys")s&hp.Rcs(hp.Clodo.sokind(int)(dictof=C))shp.Size(hp.iso(c).indisize)s"hp.Size(hp.iso(C).indisize).dictofs
hp.Type(T)shp.Type(int)s
hp.Unity()shp.Via()(s
hp.Via('_.x')shp.Via('_[0]')shp.Via('_.keys()[0]')shp.Via('_->abc')shp.Via('_.__dict__.keys()[0]')shp.Via('_.f_locals["abc"]')shp.Via('_.f_locals ["abc"]')shp.Via('_->f_valuestack[0]')(R	R
RtobjecttsysRRRt	enumeratetlisttargR(
RRRR!tcttR#tstxtrxRtcodetrel((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_2>sT			

cCsv|jj}ddd��Y}dtfd��Y}|�}|�}i}|j|j|j|�}x�||fD]�}|j}	x�|jd|	�|j|	�j|j	|j|�j
�j|j|�jjj|j|�jj|j|	�@j|j|j�jfD]&}
|j
||
@|j|j��q
WquWx4|jjfD]#}
|j
||
@|j|��qKWdS(s Test of dictof RcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR�sR!c	BseZd	ZRS(
RRtbR'tdtetftgth(	RRR/R'R0R1R2R3R4(RRt	__slots__(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR!�stdictofN((R	R
R"RRt	__class__tClodotClassR6RtindisizetbysizeRRtNothing(RRRR!R'R(tdntisodR*tXR((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_3~s*			"(cCsfddd��Y}|�}|jj}|j|j�}|jd�j}|jt|�d�dS(s
 Test of via RcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR�stViashpy().Via('.__dict__')N((R	R
RRRRRR(RRR'RR>R*((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_4�s	cCs�ddd��Y}|�}i}|g}|j|�||_|jj}d|_|j|j|||j|�|jj|�j	@}|j|j|||j|�|j
j|�j	@}|j||�|j|j|||j|�j|j
j	j	�}xgt
t|��D]S}	||	j}t|�}
t|
�}|j||�|j||@||	�qWddl}|j}
~|j|
�}|j|jjj	�}|j|tt|j��@|�dS(s6 Non-systematic tests that came up around Sep 14 2005 RcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR�sshp.i����N((tappendtcrefR	R
RRRR9tsokindtrefdbyR8RRtrangetlenRRRR#tpathtModuleR6(RRR'R0RDRRR/R)RtrateraR#tpR*((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_5�s2		
		443

	c	Csddd��Y}|�}i}|g}|j|�||_|jj}d|_ddl}|j|j|||j||�}xtdddd	d
dd
ddf	D]P}t|t	�r�|d \}}	nd}	t
||�}
|j|
||	�q�WdS(s Test of .refdby on all others RcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR�sshp.i����NtUnityR9R8tIdRJRiRR
RAii((Ri(RCRDR	R
RR#RRt
isinstancettupletgetattrter_test(RRR'R0RDRR#R)tpretlevelter((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_6�s2		
		$ic
Cs�|jj}t|�}|jt|�|�xy|fD]n}|j|�}|j}t|�}	t|	�}
|j|
|�|j||@|�|j||
@|�q8W|j}|j}|dkr�|j	|||d�|j	|||d�ndS(Nii(
R	R
RRRRRRFR6RT(
RRWtsetRVRtrerR)tsbytsktrsktsket	er_refdbyt	er_dictof((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyRT	s 			c
Cs�|jj}ddd��Y}d|fd��Y}d|fd��Y}dtfd��Y}d	|fd
��Y}d|fd��Y}|�}|�}	|�}
|�}|�}|�}
|jgi||	|
|||
|	j�	}x�|jd
�|j|�|j|�|jj|�j	fD]�}|j
d�}|j
d�}|j
d�}|j
d�}|j
d�}x-|||||||@fD]}||@q�Wq*W|jj|�j	}ddl}|j�|j
|j
d�j�}|j
|j
d�j�}|j|j|	j�|dk�|j||k�|j�|j
|j
d�j�}|j
|j
d�j�}|j|j|	j�|dk�|j||k�dS(s# Test of alternative sets w. biper RcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR0stDcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyRa3stEcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyRb6sR!cBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyR!9stUcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyRc<stVcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyRd?si t<s<=s>=s!=i����Nii((R	R
R"RRRR9R
RERFtalttgctcollectRtbipertassert_(RRRRaRbR!RcRdR'R0R1R(tutvR)RtlttletgetgttneRRgR/((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_7+sL						*$
#
#c
Cs|jj}ddd��Y}|�}g}i}|j|||d�}x�|j|�df|jt�df|j|�df|j||�df|jt�|j|�BdffD]B\}}|j|j�}	|j|	|j	j
jjd|�q�WdS(s Test of findex and biper RcBseZRS((RR(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyRsiiN((
R	R
RR9R
tdictRRiRRtfamt
classifiertkinds(
RRRR'tliRR)RRRM((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_8ys	/c
	CsYddlm}ddddddd	d
dg	}|�}g|D]}|t||�f^qA}|jd|j|j@f�dd
lm}|�}|djd�Ix%|D]}||djd�Iq�W|Jxe|D]]}	||	djd�Ix9|D]1}|t|	d|dk�d jd�IqW|Jq�W|j	|j
�d�dS(s Test the subrelation relation i����(thpyR9R8RPtIdsetRJRRR
ROs	Size&Type(tStringIORi
iiis�           Class   Clodo   Id      Idset   Module  Rcs     Size    Type    Unity   Size&Type
Class      F       F       F       F       F       F       F       T       T       F      
Clodo      T       F       F       F       F       F       F       T       T       F      
Id         F       F       F       F       F       F       F       F       T       F      
Idset      F       F       F       F       F       F       F       F       T       F      
Module     F       F       F       F       F       F       F       F       T       F      
Rcs        F       F       F       F       F       F       F       F       T       F      
Size       F       F       F       F       F       F       F       F       T       F      
Type       F       F       F       F       F       F       F       F       T       F      
Unity      F       F       F       F       F       F       F       F       F       F      
Size&Type  F       F       F       F       F       F       T       T       T       F      
N(tguppyRyRSRCRR
R{tljusttstrRtgetvalue(
RRyternamesRtnametersR{R2R/R((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyttest_9�s(		(	


/(RRR R.R@RBRNRXRTRrRxR�(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyRs	)	@	(		.	%"	N	icCstjt|�dS(N(Rtrun_unittestR(tdebug((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyt	test_main�st__main__(toffN(tguppy.heapy.testRRRR�Rtguppy.heapy.RemoteR�(((sK/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_ER.pyt<module>
s��

Zerion Mini Shell 1.0