Back to index

python3.2  3.2.2
Public Member Functions | Private Member Functions
email.test.test_email.TestEmailBase Class Reference
Inheritance diagram for email.test.test_email.TestEmailBase:
Inheritance graph

List of all members.

Public Member Functions

def ndiffAssertEqual

Private Member Functions

def _msgobj

Detailed Description

Definition at line 56 of file

Member Function Documentation

def email.test.test_email.TestEmailBase._msgobj (   self,
) [private]

Reimplemented in email.test.test_email.TestIdempotent, and email.test.test_email_torture.TortureBase.

Definition at line 67 of file

00068     def _msgobj(self, filename):
00069         with openfile(findfile(filename)) as fp:
00070             return email.message_from_file(fp)
# Test various aspects of the Message class's API

Here is the call graph for this function:

def email.test.test_email.TestEmailBase.ndiffAssertEqual (   self,
Like assertEqual except use ndiff for readable output.

Definition at line 57 of file

00058     def ndiffAssertEqual(self, first, second):
00059         """Like assertEqual except use ndiff for readable output."""
00060         if first != second:
00061             sfirst = str(first)
00062             ssecond = str(second)
00063             rfirst = [repr(line) for line in sfirst.splitlines()]
00064             rsecond = [repr(line) for line in ssecond.splitlines()]
00065             diff = difflib.ndiff(rfirst, rsecond)
00066             raise self.failureException(NL + NL.join(diff))

Here is the call graph for this function:

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