Sindbad~EG File Manager

Current Path : /usr/local/lib/python2.7/test/
Upload File :
Current File : //usr/local/lib/python2.7/test/test_nntplib.pyo

�
Ο�dc@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-/usr/local/lib/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-/usr/local/lib/python2.7/test/test_nntplib.pytsetUp$s	cCs|jj�dS(N(R	twait(R((s-/usr/local/lib/python2.7/test/test_nntplib.pyttearDown.s(t__name__t
__module__RR!(((s-/usr/local/lib/python2.7/test/test_nntplib.pyR#s	
sthreading requiredtServerTestscBseZeZd�ZRS(cCs&tjd|j�}|jj�dS(Nt	localhost(tnntplibtNNTPRRR(Rtnntp((s-/usr/local/lib/python2.7/test/test_nntplib.pyttest_basic_connect6s(R"R#tFalseRR)(((s-/usr/local/lib/python2.7/test/test_nntplib.pyR$2stEvilServerTestscBseZeZd�ZRS(cCs#|jtjtjd|j�dS(NR%(tassertRaisesR&t
NNTPDataErrorR'R(R((s-/usr/local/lib/python2.7/test/test_nntplib.pyttest_too_long_line?s(R"R#tTrueRR.(((s-/usr/local/lib/python2.7/test/test_nntplib.pyR+;scCstjt�tjt�dS(N(Rtrun_unittestR+R$(tverbose((s-/usr/local/lib/python2.7/test/test_nntplib.pyt	test_mainDs
t__main__(RR&RtunittestRtImportErrortNoneRttestRtHOSTR*RRt
skipUnlessR$R+R2R"(((s-/usr/local/lib/python2.7/test/test_nntplib.pyt<module>s&

	

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists