Current File : //opt/imh-python/lib/python2.7/test/test_nntplib.pyo
�
��Wc@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((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pytsetUp$s	cCs|jj�dS(N(R	twait(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pyttearDown.s(t__name__t
__module__RR!(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pyR#s	
sthreading requiredtServerTestscBseZeZd�ZRS(cCs&tjd|j�}|jj�dS(Nt	localhost(tnntplibtNNTPRRR(Rtnntp((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pyttest_basic_connect6s(R"R#tFalseRR)(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pyR$2stEvilServerTestscBseZeZd�ZRS(cCs#|jtjtjd|j�dS(NR%(tassertRaisesR&t
NNTPDataErrorR'R(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pyttest_too_long_line?s(R"R#tTrueRR.(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pyR+;scCstjt�tjt�dS(N(Rtrun_unittestR+R$(tverbose((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pyt	test_mainDs
t__main__(RR&RtunittestRtImportErrortNoneRttestRtHOSTR*RRt
skipUnlessR$R+R2R"(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_nntplib.pyt<module>s&