Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PasswordResetTool.tests.utils.MockMailHost Class Reference
Inheritance diagram for PasswordResetTool.tests.utils.MockMailHost:
Inheritance graph
[legend]
Collaboration diagram for PasswordResetTool.tests.utils.MockMailHost:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def reset
def send
def validateSingleEmailAddress

Public Attributes

 messages

Detailed Description

A MailHost that collects messages instead of sending them.

Thanks to Rocky Burt for inspiration.

Definition at line 3 of file utils.py.


Constructor & Destructor Documentation

Definition at line 9 of file utils.py.

00009 
00010     def __init__(self, id):
00011         MailBase.__init__(self, id)
00012         self.reset()
    

Here is the call graph for this function:


Member Function Documentation

Definition at line 13 of file utils.py.

00013 
00014     def reset(self):
00015         self.messages = []
    

Here is the caller graph for this function:

def PasswordResetTool.tests.utils.MockMailHost.send (   self,
  message,
  mto = None,
  mfrom = None,
  subject = None,
  encode = None 
)
Basically construct an email.Message from the given params to make sure
everything is ok and store the results in the messages instance var.

Definition at line 16 of file utils.py.

00016 
00017     def send(self, message, mto=None, mfrom=None, subject=None, encode=None):
00018         """
00019         Basically construct an email.Message from the given params to make sure
00020         everything is ok and store the results in the messages instance var.
00021         """
00022         self.messages.append(message)

Definition at line 23 of file utils.py.

00023 
00024     def validateSingleEmailAddress(self, address):
00025         return True # why not

Member Data Documentation

Definition at line 14 of file utils.py.


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