Package pyzmail :: Package tests :: Module test_parse :: Class TestParse
[hide private]
[frames] | no frames]

Class TestParse

source code

            object --+    
                     |    
unittest.case.TestCase --+
                         |
                        TestParse

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
test_decode_mail_header(self)
test decode_mail_header()
source code
 
test_get_mail_addresses(self)
test get_mail_addresses()
source code
 
test_get_filename(self)
test get_filename()
source code
 
test_get_mailparts(self)
test get_mailparts()
source code
 
check_message_1(self, msg) source code
 
check_message_2(self, msg) source code
 
check_message_3(self, msg) source code
 
check_pyzmessage_factories(self, input, check)
test PyzMessage from different sources
source code
 
test_pyzmessage_factories(self)
test PyzMessage class different sources
source code

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest, tearDown

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]
  raw_1 = 'Content-Type: text/plain; charset="us-ascii"\nMIME-Ve...
  raw_2 = 'From: sender@domain.com\nTo: recipient@domain.com\nDa...
  raw_3 = 'Content-Type: text/plain; charset="us-ascii"\nMIME-Ve...

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.case.TestCase.setUp
(inherited documentation)

Class Variable Details [hide private]

raw_1

Value:
'''Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: simple test
From: Me <me@foo.com>
To: A <a@foo.com>, B <b@foo.com>
Cc: C <c@foo.com>, d@foo.com
User-Agent: pyzmail
...

raw_2

Value:
'''From: sender@domain.com
To: recipient@domain.com
Date: Tue, 7 Jun 2011 16:32:17 +0200
Subject: contains 8bits attachments using different encoding
Content-Type: multipart/mixed; boundary=mixed

--mixed
Content-Type: text/plain; charset="us-ascii"
...

raw_3

Value:
'''Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: Beno\xc3\xaet & Ant\xc3\xb3nio
From: =?utf-8?q?Beno=C3=AEt?= <benoit@example.com>
To: Ant\xc3\xb3nio Foo <a.foo@example.com>
Cc: Beno\xc3\xaet <benoit@foo.com>, d@foo.com
User-Agent: pyzmail
...