%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_imaplib.pyo

ó
Nêáac@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((s-/usr/local/lib/python2.7/test/test_imaplib.pyt,test_that_Time2Internaldate_returns_a_results	
(t__name__t
__module__R(((s-/usr/local/lib/python2.7/test/test_imaplib.pyRstSecureTCPServercBseZd„ZRS(cCs:|jjƒ\}}tj|dtdtƒ}||fS(Ntserver_sidetcertfile(tsockettaccepttssltwrap_sockettTruetCERTFILE(Rt	newsockettfromaddrt
connstream((s-/usr/local/lib/python2.7/test/test_imaplib.pytget_request)s
	(RRR(((s-/usr/local/lib/python2.7/test/test_imaplib.pyR'scBseZRS((RR(((s-/usr/local/lib/python2.7/test/test_imaplib.pyR4stSimpleIMAPHandlercBs)eZdZd„Zd„Zd„ZRS(icCs,trdG|jƒGHn|jj|ƒdS(NsSENT:(Rtstriptwfiletwrite(Rtmessage((s-/usr/local/lib/python2.7/test/test_imaplib.pyt_send>scCs|jdƒxød}x\y0|jjdƒ}|dkr>dS||7}Wntk
r]dSX|jdƒrPqqWtrdG|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((s-/usr/local/lib/python2.7/test/test_imaplib.pythandleBs,




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

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

ccsB|jtjdf|ƒ\}}z	|VWd|j||ƒXdS(Ni(RLtsupporttHOSTRQ(RRJRKRP((s-/usr/local/lib/python2.7/test/test_imaplib.pyt
reaped_servers!	cCs8|jtƒ#}|j|jŒ}|jƒWdQXdS(N(RTRt
imap_classRBRN(RRKtclient((s-/usr/local/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((s-/usr/local/lib/python2.7/test/test_imaplib.pyR2Ÿs(RRR2(((s-/usr/local/lib/python2.7/test/test_imaplib.pyRXžs(	tSocketServertStreamRequestHandlerRTtassertRaisesR	tIMAP4tabortRURB(RRXRK((s-/usr/local/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(s-/usr/local/lib/python2.7/test/test_imaplib.pyR2¬s(RRR2((Ra(s-/usr/local/lib/python2.7/test/test_imaplib.pyR_«st_MAXLINEsgot more than 10 bytes(
RRTRRt	swap_attrR	tassertRaisesRegexpR\terrorRURB(RR_RK((Ras-/usr/local/lib/python2.7/test/test_imaplib.pyttest_linetoolong¨s
(
RRRLRQRRTRRWR^Rf(((s-/usr/local/lib/python2.7/test/test_imaplib.pyR5gs		
tThreadedNetworkedTestscBseZejZejZRS((RRRYt	TCPServerR@R	R\RU(((s-/usr/local/lib/python2.7/test/test_imaplib.pyRg¶s	sSSL not availabletThreadedNetworkedTestsSSLcBseZeZeZRS((RRRR@t	IMAP4_SSLRU(((s-/usr/local/lib/python2.7/test/test_imaplib.pyRi¼stRemoteIMAPTestcBsVeZdZdZdZdZejZd„Z	d„Z
d„Zd„Zd„Z
RS(	scyrus.andrew.cmu.eduit	anonymoustpasscCs5t|jƒ |j|j|jƒ|_WdQXdS(N(RthostRUtportRK(R((s-/usr/local/lib/python2.7/test/test_imaplib.pytsetUpÊscCs#|jdk	r|jjƒndS(N(RKtNonetlogout(R((s-/usr/local/lib/python2.7/test/test_imaplib.pyttearDownÎscCs|jd|jjkƒdS(Nt
LOGINDISABLED(t
assertTrueRKtcapabilities(R((s-/usr/local/lib/python2.7/test/test_imaplib.pyttest_logincapaÒscCsL|jd|jjkƒ|jj|j|jƒ}|j|ddƒdS(NsAUTH=ANONYMOUSitOK(RuRKRvtlogintusernametpasswordRA(Rtrs((s-/usr/local/lib/python2.7/test/test_imaplib.pyttest_anonloginÕscCs0|jjƒ}d|_|j|ddƒdS(NitBYE(RKRrRqRA(RR|((s-/usr/local/lib/python2.7/test/test_imaplib.pyttest_logoutÚs	(RRRnRoRzR{R	R\RURpRsRwR}R(((s-/usr/local/lib/python2.7/test/test_imaplib.pyRkÃs					tRemoteIMAP_SSLTestcBseZdZeZd„ZRS(iácCs6|jd|jjkƒ|jd|jjkƒdS(NRts
AUTH=PLAIN(tassertFalseRKRvRu(R((s-/usr/local/lib/python2.7/test/test_imaplib.pyRwås(RRRoRjRURw(((s-/usr/local/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((s-/usr/local/lib/python2.7/test/test_imaplib.pyt	test_mainês	!	t__main__((#ttestRRRt
import_moduleRt
contextlibRR	tos.pathR„RYRRRRtunittestRtImportErrorRqRtTestCaseRRhRRjRZRR5Rgt
skipUnlessRiRkR€RŽR(((s-/usr/local/lib/python2.7/test/test_imaplib.pyt<module>s<


	-O		

Zerion Mini Shell 1.0