Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.21.98.162
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_imaplib.pyo
�
?��cc@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((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyt,test_that_Time2Internaldate_returns_a_results	
(t__name__t
__module__R(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyRstSecureTCPServercBseZd�ZRS(cCs:|jj�\}}tj|dtdt�}||fS(Ntserver_sidetcertfile(tsockettaccepttssltwrap_sockettTruetCERTFILE(Rt	newsockettfromaddrt
connstream((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pytget_request)s
	(RRR(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyR'scBseZRS((RR(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyR4stSimpleIMAPHandlercBs)eZdZd�Zd�Zd�ZRS(icCs,trdG|j�GHn|jj|�dS(NsSENT:(Rtstriptwfiletwrite(Rtmessage((s8/usr/local/python-2.7/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((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pythandleBs,




 cCs%|jd�|jd|f�dS(Ns* CAPABILITY IMAP4rev1
s%s OK CAPABILITY completed
(R#(RR/R1((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pytcmd_CAPABILITYbs
(RRttimeoutR#R2R3(((s8/usr/local/python-2.7/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((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pythandle_errorls

(RRR;(((s8/usr/local/python-2.7/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
((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pytmake_serveris&		
		
cCs4trdGHn|j�|j�tr0dGHndS(Nswaiting for servertdone(Rtshutdowntjoin(RRKtthread((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pytreap_server�s

ccsB|jtjdf|�\}}z	|VWd|j||�XdS(Ni(RLtsupporttHOSTRQ(RRJRKRP((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyt
reaped_server�s!	cCs8|jt��#}|j|j�}|j�WdQXdS(N(RTRt
imap_classRBRN(RRKtclient((s8/usr/local/python-2.7/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((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyR2�s(RRR2(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyRX�s(	tSocketServertStreamRequestHandlerRTtassertRaisesR	tIMAP4tabortRURB(RRXRK((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyttest_issue5949�scs�d�dtf�fd��Y}|j|��R}tjtd���4|jtjjd��|j|j	�WdQXWdQXWdQXdS(Ni
tTooLongHandlercseZ�fd�ZRS(cs |jjd�dd�dS(Ns* OK txs
(R R!(R(tmaxline(s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyR2�s(RRR2((Ra(s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyR_�st_MAXLINEsgot more than 10 bytes(
RRTRRt	swap_attrR	tassertRaisesRegexpR\terrorRURB(RR_RK((Ras8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyttest_linetoolong�s
(
RRRLRQRRTRRWR^Rf(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyR5gs		
tThreadedNetworkedTestscBseZejZejZRS((RRRYt	TCPServerR@R	R\RU(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyRg�s	sSSL not availabletThreadedNetworkedTestsSSLcBseZeZeZRS((RRRR@t	IMAP4_SSLRU(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyRi�stRemoteIMAPTestcBsVeZdZdZdZdZejZd�Z	d�Z
d�Zd�Zd�Z
RS(	scyrus.andrew.cmu.edui�t	anonymoustpasscCs5t|j�� |j|j|j�|_WdQXdS(N(RthostRUtportRK(R((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pytsetUp�scCs#|jdk	r|jj�ndS(N(RKtNonetlogout(R((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyttearDown�scCs|jd|jjk�dS(Nt
LOGINDISABLED(t
assertTrueRKtcapabilities(R((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyttest_logincapa�scCsL|jd|jjk�|jj|j|j�}|j|dd�dS(NsAUTH=ANONYMOUSitOK(RuRKRvtlogintusernametpasswordRA(Rtrs((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyttest_anonlogin�scCs0|jj�}d|_|j|dd�dS(NitBYE(RKRrRqRA(RR|((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyttest_logout�s	(RRRnRoRzR{R	R\RURpRsRwR}R(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyRk�s					tRemoteIMAP_SSLTestcBseZdZeZd�ZRS(i�cCs6|jd|jjk�|jd|jjk�dS(NRts
AUTH=PLAIN(tassertFalseRKRvRu(R((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyRw�s(RRRoRjRURw(((s8/usr/local/python-2.7/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
TestFailedtextendRgRiRkR�trun_unittest(ttests((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyt	test_main�s	!	t__main__((#ttestRRRt
import_moduleRt
contextlibRR	tos.pathR�RYRRRRtunittestRtImportErrorRqRtTestCaseRRhRRjRZRR5Rgt
skipUnlessRiRkR�R�R(((s8/usr/local/python-2.7/lib/python2.7/test/test_imaplib.pyt<module>s<


	-O		
© 2025 GrazzMean