Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
email.test.test_email.TestFromMangling Class Reference

List of all members.

Public Member Functions

def setUp
def test_mangled_from
def test_dont_mangle_from

Public Attributes

 msg

Detailed Description

Definition at line 1231 of file test_email.py.


Member Function Documentation

Definition at line 1232 of file test_email.py.

01232 
01233     def setUp(self):
01234         self.msg = Message()
01235         self.msg['From'] = 'aaa@bbb.org'
01236         self.msg.set_payload("""\
01237 From the desk of A.A.A.:
01238 Blah blah blah
01239 """)

Here is the caller graph for this function:

Definition at line 1251 of file test_email.py.

01251 
01252     def test_dont_mangle_from(self):
01253         s = StringIO()
01254         g = Generator(s, mangle_from_=False)
01255         g.flatten(self.msg)
01256         self.assertEqual(s.getvalue(), """\
01257 From: aaa@bbb.org
01258 
01259 From the desk of A.A.A.:
01260 Blah blah blah
01261 """)
01262 
01263 
01264 
# Test the basic MIMEAudio class

Here is the call graph for this function:

Definition at line 1240 of file test_email.py.

01240 
01241     def test_mangled_from(self):
01242         s = StringIO()
01243         g = Generator(s, mangle_from_=True)
01244         g.flatten(self.msg)
01245         self.assertEqual(s.getvalue(), """\
01246 From: aaa@bbb.org
01247 
01248 >From the desk of A.A.A.:
01249 Blah blah blah
01250 """)

Here is the call graph for this function:


Member Data Documentation

Definition at line 1233 of file test_email.py.


The documentation for this class was generated from the following file: