%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/test/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyc

�
5}�ac@sddlZddlZddlZddlZyddlZWnek
rYdZnXddlmZddlm	Z	e	j
Z
ed�Zdefd��YZ
ejed�de
fd	��Y�Zejed�d
e
fd��Y�Zdd�Zed
kre�ndS(i����N(tTestCase(ttest_supportcCs�|jd�zfy|j�\}}Wntjk
r<n6X|r[|jddd�n
|jd�|j�Wd|j�|j�XdS(Nis1 I'm too long responsei�s
s1 I'm OK response
(tlistentaccepttsocketttimeouttsendtclosetset(tevttservteviltconntaddr((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pytservers


tBaseServerTestcBseZd�Zd�ZRS(cCs�tj�|_tjtjtj�|_|jjd�tj	|j�|_
tjdtd|j|j|j
f�j�tjd�dS(Nittargettargsg�������?(t	threadingtEventR	RtAF_INETtSOCK_STREAMtsockt
settimeoutRt	bind_porttporttThreadRRtstartttimetsleep(tself((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pytsetUp$s	cCs|jj�dS(N(R	twait(R((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyttearDown.s(t__name__t
__module__RR!(((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyR#s	
sthreading requiredtServerTestscBseZeZd�ZRS(cCs&tjd|j�}|jj�dS(Nt	localhost(tnntplibtNNTPRRR(Rtnntp((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyttest_basic_connect6s(R"R#tFalseRR)(((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyR$2stEvilServerTestscBseZeZd�ZRS(cCs#|jtjtjd|j�dS(NR%(tassertRaisesR&t
NNTPDataErrorR'R(R((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyttest_too_long_line?s(R"R#tTrueRR.(((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyR+;scCstjt�tjt�dS(N(Rtrun_unittestR+R$(tverbose((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyt	test_mainDs
t__main__(RR&RtunittestRtImportErrortNoneRttestRtHOSTR*RRt
skipUnlessR$R+R2R"(((s:/opt/plesk/python/2.7/lib64/python2.7/test/test_nntplib.pyt<module>s&

	

Zerion Mini Shell 1.0