~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-31 07:22:31 UTC
  • mfrom: (13139.2.3 bug-227494)
  • Revision ID: launchpad@pqm.canonical.com-20110531072231-sgn2hw8fri21f3kf
[r=wgrant][bug=227494] Make person.inTeam(foo) and foo.members agree
 even for team owners.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    >>> kamion = personset.getByName('kamion')
42
42
    >>> sampleperson = personset.getByName('name12')
43
43
    >>> ubuntu_team = personset.getByName('ubuntu-team')
 
44
    >>> from lp.testing.sampledata import ADMIN_EMAIL
 
45
    >>> admin_person = personset.getByEmail(ADMIN_EMAIL)
44
46
 
45
47
 
46
48
Now Robert Collins proposes himself as a member of the Ubuntu Team. This
826
828
    ...     hwdb_admins)
827
829
    >>> print dumper_hwdb_membership.status.title
828
830
    Approved
829
 
    >>> setStatus(dumper_hwdb_membership,
830
 
    ...     TeamMembershipStatus.DEACTIVATED, reviewer=mark, silent=True)
 
831
    >>> login_person(admin_person)
 
832
    >>> setStatus(dumper_hwdb_membership, TeamMembershipStatus.DEACTIVATED,
 
833
    ...     reviewer=admin_person, silent=True)
831
834
    >>> run_mail_jobs()
832
835
    >>> len(stub.test_emails)
833
836
    0