KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/task/21573/root/usr/lib/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/task/21573/root/usr/lib/python2.4/test/test_rfc822.pyo
m
=5Dc@sdkZdkZdkZdklZydklZWn ej
odklZnXdeifdYZ	dZ
edjoe
ndS(N(stest_support(sStringIOtMessageTestCasecBstZdZdZdZdZdZdZdZdZ	d	Z
d
ZdZdZ
d
ZdZdZRS(NcCstit|S(N(trfc822tMessagetStringIOtmsg(tselfR((t&/usr/lib/python2.4/test/test_rfc822.pytcreate_message
scCs|id}|i|iddj|i|iddj|i|iddj|i|idddjdS(Ns)To: "last, first" <userid@foo.net>

test
ttos"last, first" <userid@foo.net>tTOsNo-Such-Headers
No-Such-Value(RRRtassert_tgettNone(RR((Rttest_gets
cCs|id}|i|id|i|idddj|i|idddj|i|ddj|i|iddj|i|ddjdS(	Ns)To: "last, first" <userid@foo.net>

test
s
New-Headers	New-ValuesDifferent-Values
new-headersAnother-Headertsanother-header(RRRR
thas_keyt
setdefault(RR((Rttest_setdefaultsc
Cs|i|}d}x|id|idD]\}}y!||d||d}}Wn/tj
o#dGt|Gt|GHq2nX|d}||jo||joq2dGt|Gt|GHq2W|i
d}	|	o|i|	dd
ndS(sCheck addresses and the date.iRtccisextra parsed address:s
not found:tdateii
ii9i#sdate conversion failedN(	iii
ii9i#iii(RRRtmtitgetaddrlisttntatresultstmntmat
IndexErrortreprtgetdatetouttassertEqual(
RRRRRRRRRR((Rtcheck%s&!
	c	Cs|iddg|iddg|idddg|iddg|id
d d!d"d#d$d%g|idd&g|idd'gdS((NsDate:    Wed, 13 Jan 1999 23:57:35 -0500
From:    Guido van Rossum <guido@CNRI.Reston.VA.US>
To:      "Guido van
	 : Rossum" <guido@python.org>
Subject: test2

test2
sGuido van
	 : Rossumsguido@python.orgsFrom: Barry <bwarsaw@python.org
To: guido@python.org (Guido: the Barbarian)
Subject: nonsense
Date: Wednesday, January 13 1999 23:57:35 -0500

testsGuido: the BarbariansFrom: Barry <bwarsaw@python.org
To: guido@python.org (Guido: the Barbarian)
Cc: "Guido: the Madman" <guido@python.org>
Date:  13-Jan-1999 23:57:35 EST

testsGuido: the MadmanswTo: "The monster with
     the very long name: Guido" <guido@python.org>
Date:    Wed, 13 Jan 1999 23:57:35 -0500

tests/The monster with
     the very long name: GuidosTo: "Amit J. Patel" <amitp@Theory.Stanford.EDU>
CC: Mike Fletcher <mfletch@vrtelecom.com>,
        "'string-sig@python.org'" <string-sig@python.org>
Cc: fooz@bat.com, bart@toof.com
Cc: goit@lip.com
Date:    Wed, 13 Jan 1999 23:57:35 -0500

tests
Amit J. Patelsamitp@Theory.Stanford.EDUs
Mike Fletchersmfletch@vrtelecom.coms'string-sig@python.org'sstring-sig@python.orgRsfooz@bat.coms
bart@toof.comsgoit@lip.comsVTo: Some One <someone@dom.ain>
From: Anudder Persin <subuddy.else@dom.ain>
Date:

testsSome Onessomeone@dom.ains%To: person@dom.ain (User J. Person)

sUser J. Personsperson@dom.ain(sGuido van
	 : Rossumsguido@python.org(sGuido: the Barbariansguido@python.org(sGuido: the Barbariansguido@python.org(sGuido: the Madmansguido@python.org(s/The monster with
     the very long name: Guidosguido@python.org(s
Amit J. Patelsamitp@Theory.Stanford.EDU(s
Mike Fletchersmfletch@vrtelecom.com(s'string-sig@python.org'sstring-sig@python.org(Rsfooz@bat.com(Rs
bart@toof.com(Rsgoit@lip.com(sSome Onessomeone@dom.ain(sUser J. Personsperson@dom.ain(RR!(R((Rt
test_basic?s	
	
	
	
			
	cCs|iddddgdS(NsrTo: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com>
Date:    Wed, 13 Jan 1999 23:57:35 -0500

testRsdd47@mail.xxx.edus%_at_hmhq@hdq-mdm1-imgout.companay.com(RR(Rsdd47@mail.xxx.edu(Rs%_at_hmhq@hdq-mdm1-imgout.companay.com(RR!(R((Rttest_twisteds	cCs|iddgdS(Ns(To: "last, first" <userid@foo.net>

testslast, firstsuserid@foo.net(slast, firstsuserid@foo.net(RR!(R((Rttest_commas_in_full_names	cCs|iddgdS(Ns5To: (Comment stuff) "Quoted name"@somewhere.com

tests
Comment stuffs"Quoted name"@somewhere.com(s
Comment stuffs"Quoted name"@somewhere.com(RR!(R((Rttest_quoted_names	cCs|iddgdS(NsETo: :
Cc: goit@lip.com
Date:    Wed, 13 Jan 1999 23:57:35 -0500

testRsgoit@lip.com(Rsgoit@lip.com(RR!(R((Rttest_bogus_to_headers	cCs|iddgdS(NsTo: guido@[132.151.1.21]

fooRsguido@[132.151.1.21](Rsguido@[132.151.1.21](RR!(R((Rttest_addr_ipquads	cCs;titd}|it|ddddgdS(NsDate:    Wed, 13 Jan 1999 23:57:35 -0500
From:    Guido van Rossum <guido@CNRI.Reston.VA.US>
To:      "Guido van
	 : Rossum" <guido@python.org>
Subject: test2

test2
RtfromtsubjectR(RRRRRR tsorted(RR((Rt	test_iterscCs|iddgdS(Ns%To: User J. Person <person@dom.ain>

sUser J. Personsperson@dom.ain(sUser J. Personsperson@dom.ain(RR!(R((Rttest_rfc2822_phrasess	cCs|i}|id}g}dddgD]}|d|fq,~}|id}|i
||||id}|i
|||dS(NsaTo: aperson@dom.ain
Cc: bperson@dom.ain
Cc: cperson@dom.ain
Cc: dperson@dom.ain

A test message.
sbperson@dom.ainscperson@dom.ainsdperson@dom.ainRR(RR teqRRt_[1]RtccsRtaddrstsort(RRR/R.R0RR-((Rttest_2getaddrlists	0


cCse|i}|tidd
|tidd|tidd|tidd
dS(Ns<>Rsaperson@dom.ainsbperson@dom.ain (Bea A. Person)s
Bea A. Personsbperson@dom.ains Cynthia Person <cperson@dom.ain>sCynthia Personscperson@dom.ain(RR(Rsaperson@dom.ain(s
Bea A. Personsbperson@dom.ain(sCynthia Personscperson@dom.ain(RR R-Rt	parseaddr(RR-((Rttest_parseaddrs	cCs9|i}|tidd|tidddS(Nsfoo\wacky"namesfoo\\wacky\"names"foo\\wacky\"name"(RR R-Rtquotetunquote(RR-((Rttest_quote_unquotes	(t__name__t
__module__RR
RR!R"R#R$R%R&R'R+R,R2R4R7(((RRs						E		
									cCstitdS(N(ttest_supporttrun_unittestR(((Rt	test_mainst__main__(RtsystunittestttestR:t	cStringIORtImportErrortTestCaseRR<R8(R:RR?RR>R<R((Rt?s			
	


Anon7 - 2021