~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

  • 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:
614
614
        email_address_status=None, hide_email_addresses=False,
615
615
        displayname=None, time_zone=None, latitude=None, longitude=None,
616
616
        selfgenerated_bugnotifications=False, member_of=(),
617
 
        homepage_content=None):
 
617
        homepage_content=None, account_status=None):
618
618
        """Create and return a new, arbitrary Person.
619
619
 
620
620
        :param email: The email address for the new person.
679
679
 
680
680
        removeSecurityProxy(email).status = email_address_status
681
681
 
 
682
        if account_status:
 
683
            removeSecurityProxy(person.account).status = account_status
682
684
        self.makeOpenIdIdentifier(person.account)
683
685
 
684
686
        for team in member_of: