Module Import alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareIs Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num For TupleStore NameStore NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body TryExcept body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num handlers ExceptHandler type NameLoad body Print Str Call NameLoad NameLoad Call NameLoad NameLoad Continue Assign NameStore BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str TupleLoad Repr NameLoad Repr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str TupleLoad Repr NameLoad Repr NameLoad If BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Pass orelse Print Str Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num Num Num Num Num Num Num Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp TupleLoad Str NameLoad comprehension NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr Str TupleLoad Str Str Expr Call NameLoad Call AttributeLoad NameLoad attr Str TupleLoad Str Str Expr Call NameLoad Call AttributeLoad NameLoad attr Str TupleLoad Str Str Expr Call NameLoad Call AttributeLoad NameLoad attr Str TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr Str Str Expr Call NameLoad Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A rfc822 N/A sys N/A unittest test test_support N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A StringIO StringIO MessageTestCase N/A N/A unittest TestCase N/A create_message N/A N/A self msg N/A N/A N/A N/A N/A rfc822 Message N/A StringIO msg N/A test_get N/A N/A self N/A N/A N/A msg N/A N/A self create_message To: "last, first" <userid@foo.net>

test
 N/A N/A N/A self assert_ N/A N/A N/A msg get to "last, first" <userid@foo.net> N/A N/A N/A self assert_ N/A N/A N/A msg get TO "last, first" <userid@foo.net> N/A N/A N/A self assert_ N/A N/A N/A msg get No-Such-Header None N/A N/A N/A self assert_ N/A N/A N/A msg get No-Such-Header No-Such-Value No-Such-Value N/A test_setdefault N/A N/A self N/A N/A N/A msg N/A N/A self create_message To: "last, first" <userid@foo.net>

test
 N/A N/A N/A self assert_ N/A N/A N/A msg has_key New-Header N/A N/A N/A self assert_ N/A N/A N/A msg setdefault New-Header New-Value New-Value N/A N/A N/A self assert_ N/A N/A N/A msg setdefault New-Header Different-Value New-Value N/A N/A N/A self assert_ N/A N/A msg N/A new-header New-Value N/A N/A N/A self assert_ N/A N/A N/A msg setdefault Another-Header N/A N/A N/A self assert_ N/A N/A msg N/A another-header N/A check N/A N/A self msg results N/A N/A N/A Check addresses and the date. N/A m N/A N/A self create_message msg N/A i 0 N/A N/A n a N/A N/A N/A m getaddrlist to N/A N/A m getaddrlist cc N/A N/A N/A N/A N/A mn ma N/A N/A N/A results N/A i N/A 0 N/A N/A results N/A i N/A 1 N/A N/A N/A IndexError N/A N/A extra parsed address: N/A repr n N/A repr a N/A N/A i N/A i 1 N/A N/A N/A self assertEqual mn n N/A Un-expected name: %s != %s N/A N/A mn N/A n N/A N/A N/A self assertEqual ma a N/A Un-expected address: %s != %s N/A N/A ma N/A a N/A N/A N/A mn n N/A ma a N/A N/A N/A N/A not found: N/A repr n N/A repr a N/A out N/A N/A m getdate date N/A out N/A N/A N/A N/A self assertEqual out N/A 1999 1 13 23 57 35 0 1 0 date conversion failed N/A test_basic N/A N/A self N/A N/A N/A N/A N/A self check Date:    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
 N/A N/A Guido van
	 : Rossum guido@python.org N/A N/A N/A self check From: Barry <bwarsaw@python.org
To: guido@python.org (Guido: the Barbarian)
Subject: nonsense
Date: Wednesday, January 13 1999 23:57:35 -0500

test N/A N/A Guido: the Barbarian guido@python.org N/A N/A N/A self check From: 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

test N/A N/A Guido: the Barbarian guido@python.org N/A Guido: the Madman guido@python.org N/A N/A N/A self check To: "The monster with
     the very long name: Guido" <guido@python.org>
Date:    Wed, 13 Jan 1999 23:57:35 -0500

test N/A N/A The monster with
     the very long name: Guido guido@python.org N/A N/A N/A self check To: "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

test N/A N/A Amit J. Patel amitp@Theory.Stanford.EDU N/A Mike Fletcher mfletch@vrtelecom.com N/A 'string-sig@python.org' string-sig@python.org N/A fooz@bat.com N/A bart@toof.com N/A goit@lip.com N/A N/A N/A self check To: Some One <someone@dom.ain>
From: Anudder Persin <subuddy.else@dom.ain>
Date:

test N/A N/A Some One someone@dom.ain N/A N/A N/A self check To: person@dom.ain (User J. Person)

 N/A N/A User J. Person person@dom.ain N/A test_doublecomment N/A N/A self N/A N/A N/A N/A N/A self check To: person@dom.ain ((User J. Person)), John Doe <foo@bar.com>

 N/A N/A User J. Person person@dom.ain N/A John Doe foo@bar.com N/A test_twisted N/A N/A self N/A N/A N/A N/A N/A self check To: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com>
Date:    Wed, 13 Jan 1999 23:57:35 -0500

test N/A N/A N/A dd47@mail.xxx.edu N/A _at_hmhq@hdq-mdm1-imgout.companay.com N/A test_commas_in_full_name N/A N/A self N/A N/A N/A N/A N/A self check To: "last, first" <userid@foo.net>

test N/A N/A last, first userid@foo.net N/A test_quoted_name N/A N/A self N/A N/A N/A N/A N/A self check To: (Comment stuff) "Quoted name"@somewhere.com

test N/A N/A Comment stuff "Quoted name"@somewhere.com N/A test_bogus_to_header N/A N/A self N/A N/A N/A N/A N/A self check To: :
Cc: goit@lip.com
Date:    Wed, 13 Jan 1999 23:57:35 -0500

test N/A N/A goit@lip.com N/A test_addr_ipquad N/A N/A self N/A N/A N/A N/A N/A self check To: guido@[132.151.1.21]

foo N/A N/A guido@[132.151.1.21] N/A test_iter N/A N/A self N/A N/A N/A m N/A N/A rfc822 Message N/A StringIO Date:    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
 N/A N/A N/A self assertEqual N/A sorted m N/A date from subject to N/A test_rfc2822_phrases N/A N/A self N/A N/A N/A N/A N/A self check To: User J. Person <person@dom.ain>

 N/A N/A User J. Person person@dom.ain N/A test_2getaddrlist N/A N/A self N/A N/A N/A eq N/A self assertEqual N/A msg N/A N/A self create_message To: aperson@dom.ain
Cc: bperson@dom.ain
Cc: cperson@dom.ain
Cc: dperson@dom.ain

A test message.
 N/A ccs N/A N/A a N/A a N/A bperson@dom.ain cperson@dom.ain dperson@dom.ain N/A addrs N/A N/A msg getaddrlist cc N/A N/A N/A addrs sort N/A N/A eq addrs ccs N/A addrs N/A N/A msg getaddrlist cc N/A N/A N/A addrs sort N/A N/A eq addrs ccs N/A test_parseaddr N/A N/A self N/A N/A N/A eq N/A self assertEqual N/A N/A eq N/A N/A rfc822 parseaddr <> N/A N/A N/A eq N/A N/A rfc822 parseaddr aperson@dom.ain N/A aperson@dom.ain N/A N/A eq N/A N/A rfc822 parseaddr bperson@dom.ain (Bea A. Person) N/A Bea A. Person bperson@dom.ain N/A N/A eq N/A N/A rfc822 parseaddr Cynthia Person <cperson@dom.ain> N/A Cynthia Person cperson@dom.ain N/A test_quote_unquote N/A N/A self N/A N/A N/A eq N/A self assertEqual N/A N/A eq N/A N/A rfc822 quote foo\wacky"name foo\\wacky\"name N/A N/A eq N/A N/A rfc822 unquote "foo\\wacky\"name" foo\wacky"name N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A test_support run_unittest MessageTestCase N/A N/A N/A __name__ __main__ N/A N/A N/A test_main