~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Michael-Doyle Hudson
  • Date: 2011-09-21 21:12:02 UTC
  • mto: This revision was merged to the branch mainline in revision 14068.
  • Revision ID: michael.hudson@linaro.org-20110921211202-xk3mjmjqrufx10f5
revert the reversion of the xmlrpc feature flag endpoint

Show diffs side-by-side

added added

removed removed

Lines of Context:
505
505
    for any other required objects.
506
506
    """
507
507
 
508
 
    def loginAsAnyone(self):
 
508
    def loginAsAnyone(self, participation=None):
509
509
        """Log in as an arbitrary person.
510
510
 
511
511
        If you want to log in as a celebrity, including admins, see
513
513
        """
514
514
        login(ANONYMOUS)
515
515
        person = self.makePerson()
516
 
        login_as(person)
 
516
        login_as(person, participation)
517
517
        return person
518
518
 
519
519
    @with_celebrity_logged_in('admin')