~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/person-notification.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-19 09:35:32 UTC
  • mfrom: (13082.1.3 bug-784948)
  • Revision ID: launchpad@pqm.canonical.com-20110519093532-ig34h74kzmqb2ejj
[r=lifeless,
 stevenk][bug=784948] PersonNotificationManager.sendNotifications
 won't crash when sending email to admins of a team without a contact address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
A notification has a send() method which creates an email message and
51
51
sends it to the recipient.
52
52
 
53
 
    >>> notification.send()
 
53
    >>> from lp.services.log.logger import FakeLogger
 
54
    >>> notification.send(logger=FakeLogger())
 
55
    INFO Sending notification to ['Mark Shuttleworth <mark@example.com>'].
54
56
    >>> from lp.testing.mail_helpers import print_emails
55
57
    >>> print_emails()
56
58
    From: bounces@canonical.com