~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-04 22:30:45 UTC
  • mfrom: (14617.4.4 use-people-where-possible)
  • Revision ID: launchpad@pqm.canonical.com-20120104223045-vinsdew4chhym4ri
[r=sinzui][no-qa] Switch most tests to use Persons instead of
        Accounts. We don't support personless accounts any more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1332
1332
Now Umma's account is suspended by a Launchpad administrator.
1333
1333
 
1334
1334
    >>> from lp.services.identity.interfaces.account import (
1335
 
    ...     AccountStatus, IAccountSet)
1336
 
    >>> umma_account = getUtility(IAccountSet).getByEmail(
1337
 
    ...     'umma.person@example.com')
1338
 
    >>> umma_account.status = AccountStatus.SUSPENDED
 
1335
    ...     AccountStatus)
 
1336
    >>> umma.account.status = AccountStatus.SUSPENDED
1339
1337
    >>> transaction.commit()
1340
1338
 
1341
1339
Umma is no longer subscribed to the mailing list...