~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • 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:
768
768
        """
769
769
        if email_status is None:
770
770
            email_status = EmailAddressStatus.VALIDATED
771
 
        if account is None:
772
 
            account = person.account
773
771
        return getUtility(IEmailAddressSet).new(
774
772
            address, person, email_status, account)
775
773