Back to index

python3.2  3.2.2
Public Member Functions
email.test.test_email.TestMIMEApplication Class Reference

List of all members.

Public Member Functions

def test_headers
def test_body

Detailed Description

Definition at line 1353 of file test_email.py.


Member Function Documentation

Definition at line 1360 of file test_email.py.

01360 
01361     def test_body(self):
01362         eq = self.assertEqual
01363         bytesdata = b'\xfa\xfb\xfc\xfd\xfe\xff'
01364         msg = MIMEApplication(bytesdata)
01365         # whitespace in the cte encoded block is RFC-irrelevant.
01366         eq(msg.get_payload().strip(), '+vv8/f7/')
01367         eq(msg.get_payload(decode=True), bytesdata)
01368 
01369 
01370 
# Test the basic MIMEText class

Here is the call graph for this function:

Definition at line 1354 of file test_email.py.

01354 
01355     def test_headers(self):
01356         eq = self.assertEqual
01357         msg = MIMEApplication(b'\xfa\xfb\xfc\xfd\xfe\xff')
01358         eq(msg.get_content_type(), 'application/octet-stream')
01359         eq(msg['content-transfer-encoding'], 'base64')

Here is the call graph for this function:


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