ok

Mini Shell

Direktori : /proc/thread-self/root/proc/thread-self/root/usr/lib64/python2.7/idlelib/idle_test/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/usr/lib64/python2.7/idlelib/idle_test/test_io.pyo

�
{fc@sddlZddlZddlmZmZddlmZdefd��YZ	de	e
fd��YZde	efd	��YZ
d
e	efd��YZddd
��YZdejfd��YZdejfd��YZd�Zedkre�ndS(i����N(tPseudoInputFiletPseudoOutputFile(ttest_supporttBasecBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCsdt|�jS(Ns%s:str(ttypet__name__(tself((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__str__scCsdt|�jS(Ns
%s:unicode(RR(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__unicode__
scCsdS(Ni((R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__len__scCs
td�S(Ntabc(titer(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__iter__scGsdt|�jS(Ns%s:item(RR(Rtargs((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__getitem__scGsdt|�jS(Ns%s:slice(RR(RR
((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__getslice__s(Rt
__module__RRR	RRR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRs					tScBseZRS((RR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRstUcBseZRS((RR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRstBAcBseZRS((RR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRst	MockShellcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs|j�dS(N(treset(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__init__scGs|jj|�dS(N(twrittentappend(RR
((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pytwrite"scCs
|jj�S(N(tlinestpop(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pytreadline%scCsdS(N((R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pytclose(scCs
g|_dS(N(R(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyR+scCs t|�ddd�|_dS(Ni����(tlistR(RR((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pytpush.s(RRRRRRRR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRs					tPseudeOutputFilesTestcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs�t�}t|dd�}|j|tj�|j|jd�|j|j�|j|j	�|j|j
d�|j|j�|j
|j��|j|j��|j
|j��|j|j��dS(Ntstdoutsutf-8s<stdout>(RRtassertIsInstancetiot
TextIOBasetassertEqualtencodingtassertIsNoneterrorstnewlinestnametassertFalsetclosedt
assertTruetisattytreadabletwritabletseekable(Rtshelltf((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt	test_misc3s	cCs�t�}t|dd�}|jt|j�|jt|j�|jt|jd�|jt|jd�|jt|jd�dS(NR!sutf-8i(	RRtassertRaisestIOErrortfilenottelltseektreadR(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyttest_unsupportedAs	cCst�}t|dd�}|jd�|j|jd	g�|j�|jd�|j|jd
g�|j�|jd�|j|jdg�|j�|jtd��|j|jdg�|jt|jdd�t�|j�|jt	d��|j|jd
g�|jt|jdd�t�|j�|jt
d��|j|jdg�|jt|jdd�t�|j�|jt
|j�|j|jg�|jt
|jd�|j|jg�|jt
|jdd�|j|jg�dS(NR!sutf-8ttestst�stutèstii{tspam(R<R!(st�stR!(utèstR!(st�stR!(st�stR!(utèstR!(RRRR%RRRRtstrRRtunicodeR5t	TypeError(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt
test_writeJs:	





!
!
!
cCs�t�}t|dd�}|jg�|j|jg�|j�|jddg�|j|jd
dg�|j�|jddg�|j|jddg�|j�|jddg�|j|jddg�|j�|jtd	�g�|j|jdg�|jt|jd
d
�t�|j�|jt	d	�g�|j|jdg�|jt|jd
d
�t�|j�|jt
d�g�|j|jdg�|jt|jd
d
�t�|j�|jt
|j�|j|jg�|jt
|jd�|j|jg�|jt
|jdg�|j|jg�|jt
|jgg�|j|jg�dS(NR!sutf-8sone
ttwoson�
stw�uonè
utwòst�stiutèsti{(sone
R!(RBR!(son�
R!(stw�R!(uonè
R!(utwòR!(st�stR!(st�stR!(utèstR!(RRt
writelinesR%RRRRR>RRR?R5R@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyttest_writelinesksJ	







!
!
!
cCs�t�}t|dd�}|j|j�|jd�|j�|j|j�|jt|jd�|j	|j
dg�|j�|jt|jd�dS(NR!sutf-8R<txi(R<R!(RRR+R,RRR-R5t
ValueErrorR%RR@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt
test_close�s	


(RRR4R;RARDRG(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyR 2s
				!	)tPseudeInputFilesTestcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs�t�}t|dd�}|j|tj�|j|jd�|j|j�|j|j	�|j|j
d�|j|j�|j
|j��|j
|j��|j|j��|j|j��dS(Ntstdinsutf-8s<stdin>(RRR"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyR4�s	cCs�t�}t|dd�}|jt|j�|jt|j�|jt|jd�|jt|jd�|jt|jdg�dS(NRIsutf-8iRE(	RRR5R6R7R8R9RRC(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyR;�s	cCs~t�}t|dd�}|jdddg�|j|j�d�|jdddg�|j|jd�d�|jdddg�|j|jd�d�|jddddg�|j|jd	�d
�|j|jd�d�|j|jd
�d�|jddg�|j|jd�d�|jt|jd�|jt|jd�|jt|jdd�dS(NRIsutf-8sone
stwo
tsone
two
i����sthree
itonise
ti
s	wo
three
ig�?t1i(RRRR%R:tNoneR5R@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt	test_read�s"	cCs�t�}t|dd�}|jddddg�|j|j�d�|j|jd�d�|j|jd�d�|jdg�|j|j�d�|j|j�d�|jd	d
dg�|j|j�d	�|j|j�d
�|jdddg�|j|jd�d
�|j|jd�d�|j|jd�d�|j|jd�d�|jddg�|j|jd�d�|jt|jd�|jt|jd�|jt|jdd�dS(NRIsutf-8sone
stwo
sthree
sfour
i����sone
two
toneRBtthreeiRKites
i
iRJg�?RL(	RRRR%RRMR5R@t	readlines(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt
test_readline�s,	cCs�t�}t|dd�}|jdddg�|j|j�ddg�|jdddg�|j|jd�ddg�|jdddg�|j|jd�ddg�|jdddg�|j|jd�ddg�|jdddg�|j|jd�dg�|jdddg�|j|jd	�ddg�|jdddg�|jt|jd
�|jt|jd�|jt|jdd�dS(
NRIsutf-8sone
stwo
RJi����iiig�?RLi(RRRR%RRRMR5R@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyttest_readlines�s$	cCs�t�}t|dd�}|jdddg�|j|j�|j|j�d�|j�|j|j�|j|j�d�|jt	|jd�dS(NRIsutf-8sone
stwo
RJi(
RRRR+R,R%RRR5R@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRG�s	
(RRR4R;RNRSRTRG(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRH�s						cCstjtt�dS(N(tsupporttrun_unittestR RH(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt	test_mainst__main__((tunittestR#tidlelib.PyShellRRR<RRUtobjectRR>RR?Rt	bytearrayRRtTestCaseR RHRWR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt<module>sof	

Zerion Mini Shell 1.0