~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/mailinglist-subscriptions.txt

  • Committer: William Grant
  • Date: 2012-01-04 23:49:46 UTC
  • mto: This revision was merged to the branch mainline in revision 14635.
  • Revision ID: william.grant@canonical.com-20120104234946-i1hbapx9288jjoay
EmailAddressSet.new now infers account from person where possible. Fix redundant tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    >>> from lp.services.identity.interfaces.emailaddress import IEmailAddressSet
126
126
    >>> address_set = getUtility(IEmailAddressSet)
127
127
    >>> alternative = address_set.new(
128
 
    ...     'anne.x.person@example.net', anne, account=anne.account)
 
128
    ...     'anne.x.person@example.net', anne)
129
129
    >>> alternative.email
130
130
    u'anne.x.person@example.net'
131
131
 
246
246
to post to the mailing list.
247
247
 
248
248
    >>> alternative = address_set.new(
249
 
    ...     'cris.x.person@example.net', cris, account=cris.account)
 
249
    ...     'cris.x.person@example.net', cris)
250
250
    >>> alternative.email
251
251
    u'cris.x.person@example.net'
252
252