~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/mailman/doc/subscriptions.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-05 05:05:42 UTC
  • mfrom: (14632.1.5 implied-account)
  • Revision ID: launchpad@pqm.canonical.com-20120105050542-b4m54slx2mqa8htl
[r=wgrant][no-qa] EmailAddressSet.new now infers account from person
        if not specified explicitly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
    >>> from lp.services.identity.interfaces.emailaddress import IEmailAddressSet
111
111
    >>> login('admin@canonical.com')
112
112
    >>> email_set = getUtility(IEmailAddressSet)
113
 
    >>> email = email_set.new(
114
 
    ...     'anne.x.person@example.net', anne, account=anne.account)
 
113
    >>> email = email_set.new('anne.x.person@example.net', anne)
115
114
    >>> transaction.commit()
116
115
    >>> helpers.ensure_membership('itest-one', anne)
117
116
 
160
159
 
161
160
    >>> login('admin@canonical.com')
162
161
    >>> emma = factory.makePersonByName('Emma')
163
 
    >>> email = email_set.new(
164
 
    ...     'EmmaXPerson@example.org', emma, account=emma.account)
 
162
    >>> email = email_set.new('EmmaXPerson@example.org', emma)
165
163
    >>> email.status = EmailAddressStatus.VALIDATED
166
164
    >>> transaction.commit()
167
165
    >>> from lp.registry.interfaces.mailinglist import IMailingListSet