Current File : //opt/imh-python/lib/python2.7/test/test_imaplib.pyo
�
��Wc@s�ddlmZejd�ZddlmZddlZddlZ	ddl
Z
ddlZddlmZm
Z
mZddlZyddlZWnek
r�dZnXdadejfd��YZer�de
jfd	��YZejZnddd
��YZdZde
jfd��YZd
ejfd��YZdefd��YZejed�defd��Y�Zdejfd��YZejed�defd��Y�Z d�Z!e"dkr�e!�ndS(i����(ttest_supportt	threading(tcontextmanagerN(treap_threadstverbosettransient_internettTestImaplibcBseZd�ZRS(cCs=ddtjd�dg}x|D]}tj|�q"WdS(Ni�5wge��As"18-May-2033 05:33:20 +0200"(ttimet	localtimetimaplibtTime2Internaldate(tselft
timevaluestt((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyt,test_that_Time2Internaldate_returns_a_results	
(t__name__t
__module__R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyRstSecureTCPServercBseZd�ZRS(cCs:|jj�\}}tj|dtdt�}||fS(Ntserver_sidetcertfile(tsockettaccepttssltwrap_sockettTruetCERTFILE(Rt	newsockettfromaddrt
connstream((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pytget_request)s
	(RRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR'scBseZRS((RR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR4stSimpleIMAPHandlercBs)eZdZd�Zd�Zd�ZRS(icCs,trdG|j�GHn|jj|�dS(NsSENT:(Rtstriptwfiletwrite(Rtmessage((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyt_send>scCs|jd�x�d}x\y0|jjd�}|dkr>dS||7}Wntk
r]dSX|jd�rPqqWtr�dG|j�GHn|j�}|d}|d}|d}t|d|f�r�t	|d|f�||�q|jd	||f�qWdS(
Ns* OK IMAP4rev1
tis
sGOT:iiscmd_%ss%s BAD %s unknown
(
R#trfiletreadtIOErrortendswithRRtsplitthasattrtgetattr(Rtlinetpartt	splitlinettagtcmdtargs((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pythandleBs,




 cCs%|jd�|jd|f�dS(Ns* CAPABILITY IMAP4rev1
s%s OK CAPABILITY completed
(R#(RR/R1((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pytcmd_CAPABILITYbs
(RRttimeoutR#R2R3(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR:s		 tBaseThreadedNetworkedTestscBsPeZd�Zd�Zed��Zed��Zed��Zd�Z	RS(c	Cs�d|jfd��Y}tr'dGHn|||�}|j|j|jj��tr�dGHdG|GHdG|jGHdG|jGHntjdd	|jd
|j	didd
6�}t
|_|j�tr�dGHn||fS(NtMyServercBseZd�ZRS(cSs|j|�|j��dS(N(t
close_requesttserver_close(Rtrequesttclient_address((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pythandle_errorls

(RRR;(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR6ksscreating serversserver createdsADDR =sCLASS =sHDLR =tnames
%s servingttargettkwargsg{�G�z�?t
poll_intervalsserver running(
tserver_classRtassertEqualtserver_addressRtgetsocknametRequestHandlerClassRtThreadt
serve_foreverRtdaemontstart(RtaddrthdlrR6tserverR
((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pytmake_serveris&		
		
cCs4trdGHn|j�|j�tr0dGHndS(Nswaiting for servertdone(Rtshutdowntjoin(RRKtthread((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pytreap_server�s

ccsB|jtjdf|�\}}z	|VWd|j||�XdS(Ni(RLtsupporttHOSTRQ(RRJRKRP((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyt
reaped_server�s!	cCs8|jt��#}|j|j�}|j�WdQXdS(N(RTRt
imap_classRBRN(RRKtclient((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyttest_connect�scCsTdtjfd��Y}|j|��&}|jtjj|j|j�WdQXdS(Nt
EOFHandlercBseZd�ZRS(cSs|jjd�dS(Ns* OK(R R!(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR2�s(RRR2(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyRX�s(	tSocketServertStreamRequestHandlerRTtassertRaisesR	tIMAP4tabortRURB(RRXRK((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyttest_issue5949�scCsQdtfd��Y}|j|��&}|jtjj|j|j�WdQXdS(NtTooLongHandlercBseZd�ZRS(cSs#|jjdtjdd�dS(Ns* OK txs
(R R!R	t_MAXLINE(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR2�s(RRR2(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR_�s(RRTR[R	R\terrorRURB(RR_RK((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyttest_linetoolong�s(
RRRLRQRRTRRWR^Rc(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR5gs		
tThreadedNetworkedTestscBseZejZejZRS((RRRYt	TCPServerR@R	R\RU(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyRd�s	sSSL not availabletThreadedNetworkedTestsSSLcBseZeZeZd�ZRS(cCstjd��dS(Ns,test is not reliable on 2.7; see issue 20118(tunittesttSkipTest(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyRc�s(RRRR@t	IMAP4_SSLRURc(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyRf�stRemoteIMAPTestcBsVeZdZdZdZdZejZd�Z	d�Z
d�Zd�Zd�Z
RS(	scyrus.andrew.cmu.edui�t	anonymoustpasscCs5t|j�� |j|j|j�|_WdQXdS(N(RthostRUtportRK(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pytsetUp�scCs#|jdk	r|jj�ndS(N(RKtNonetlogout(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyttearDown�scCs|jd|jjk�dS(Nt
LOGINDISABLED(t
assertTrueRKtcapabilities(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyttest_logincapa�scCsL|jd|jjk�|jj|j|j�}|j|dd�dS(NsAUTH=ANONYMOUSitOK(RtRKRutlogintusernametpasswordRA(Rtrs((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyttest_anonlogin�scCs0|jj�}d|_|j|dd�dS(NitBYE(RKRqRpRA(RR{((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyttest_logout�s	(RRRmRnRyRzR	R\RURoRrRvR|R~(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyRj�s					tRemoteIMAP_SSLTestcBseZdZeZd�ZRS(i�cCs6|jd|jjk�|jd|jjk�dS(NRss
AUTH=PLAIN(tassertFalseRKRuRt(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyRv�s(RRRnRiRURv(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyR�scCs�tg}tjd�r�trotjjtjjt�p?tj	d�a
tjjt
�sotjd��qon|j
ttttg�ntj|�dS(Ntnetworkskeycert.pemsCan't read certificate files!(RRRtis_resource_enabledRtostpathROtdirnamet__file__tcurdirRtexistst
TestFailedtextendRdRfRjRtrun_unittest(ttests((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyt	test_main�s	!	t__main__((#ttestRRRt
import_moduleRt
contextlibRR	tos.pathR�RYRRRRRgRtImportErrorRpRtTestCaseRReRRiRZRR5Rdt
skipUnlessRfRjRR�R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imaplib.pyt<module>s<


	-K