Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_mailbox Namespace Reference

Classes

class  TestBase
class  TestMailbox
class  TestMailboxSuperclass
class  TestMaildir
class  _TestMboxMMDF
class  TestMbox
class  TestMMDF
class  TestMH
class  TestBabyl
class  FakeFileLikeObject
class  FakeMailBox
class  TestFakeMailBox
class  TestMessage
class  TestMaildirMessage
class  _TestMboxMMDFMessage
class  TestMboxMessage
class  TestMHMessage
class  TestBabylMessage
class  TestMMDFMessage
class  TestMessageConversion
class  TestProxyFileBase
class  TestProxyFile
class  TestPartialFile
class  MaildirTestCase

Functions

def test_main

Variables

string FROM_ = "From some.body@dummy.domain Sat Jul 24 13:43:35 2004\n"
 Start: tests from the original module (for backward compatibility).
string DUMMY_MESSAGE
string _sample_message
 End: tests from the original module (for backward compatibility).
tuple _bytes_sample_message = _sample_message.encode('ascii')
dictionary _sample_headers
tuple _sample_payloads

Function Documentation

Definition at line 2153 of file test_mailbox.py.

02153 
02154 def test_main():
02155     tests = (TestMailboxSuperclass, TestMaildir, TestMbox, TestMMDF, TestMH,
02156              TestBabyl, TestMessage, TestMaildirMessage, TestMboxMessage,
02157              TestMHMessage, TestBabylMessage, TestMMDFMessage,
02158              TestMessageConversion, TestProxyFile, TestPartialFile,
02159              MaildirTestCase, TestFakeMailBox)
02160     support.run_unittest(*tests)
02161     support.reap_children()
02162 


Variable Documentation

tuple test.test_mailbox._bytes_sample_message = _sample_message.encode('ascii')

Definition at line 2116 of file test_mailbox.py.

Initial value:
00001 {
00002     "Return-Path":"<gkj@gregorykjohnson.com>",
00003     "X-Original-To":"gkj+person@localhost",
00004     "Delivered-To":"gkj+person@localhost",
00005     "Received":"""from localhost (localhost [127.0.0.1])        by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17        for <gkj+person@localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)""",
00006     "Delivered-To":"gkj@sundance.gregorykjohnson.com",
00007     "Received":"""from localhost [127.0.0.1]        by localhost with POP3 (fetchmail-6.2.5)        for gkj+person@localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)""",
00008     "Received":"""from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])        by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746        for <gkj@gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)""",
00009     "Received":"""by andy.gregorykjohnson.com (Postfix, from userid 1000)        id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)""",
00010     "Date":"Wed, 13 Jul 2005 17:23:11 -0400",
00011     "From":""""Gregory K. Johnson" <gkj@gregorykjohnson.com>""",
00012     "To":"gkj@gregorykjohnson.com",
00013     "Subject":"Sample message",
00014     "Mime-Version":"1.0",
00015     "Content-Type":"""multipart/mixed; boundary="NMuMz9nt05w80d4+\"""",
00016     "Content-Disposition":"inline",
00017     "User-Agent": "Mutt/1.5.9i" }

Definition at line 2118 of file test_mailbox.py.

End: tests from the original module (for backward compatibility).

Definition at line 2069 of file test_mailbox.py.

Initial value:
00001 ("""This is a sample message.--Gregory K. Johnson""",
00002 """H4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs3FYlAAAA""")

Definition at line 2143 of file test_mailbox.py.

Initial value:
00001 """\
00002 From: some.body@dummy.domain
00003 To: me@my.domain
00004 Subject: Simple Test
00005 
00006 This is a dummy message.
00007 """

Definition at line 1983 of file test_mailbox.py.

string test.test_mailbox.FROM_ = "From some.body@dummy.domain Sat Jul 24 13:43:35 2004\n"

Start: tests from the original module (for backward compatibility).

Definition at line 1982 of file test_mailbox.py.