~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/tests/test_person_vocabularies.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-14 00:03:36 UTC
  • mfrom: (14494.2.3 private-traversal-2)
  • Revision ID: launchpad@pqm.canonical.com-20111214000336-xrnjofa8o4koipmm
[rs=sinzui][no-qa] restore the test and webapp changes that remove
        the assumptions that any attribute can be access on an IPerson.

Show diffs side-by-side

added added

removed removed

Lines of Context:
311
311
    def test_private_team_cannot_be_a_member_of_itself(self):
312
312
        # A private team should be filtered by the vocab.extra_clause
313
313
        # when provided a search term.
 
314
        owner = self.factory.makePerson()
314
315
        team = self.factory.makeTeam(
315
 
            visibility=PersonVisibility.PRIVATE)
316
 
        login_person(team.teamowner)
 
316
            owner=owner, visibility=PersonVisibility.PRIVATE)
 
317
        login_person(owner)
317
318
        self.assertNotIn(team, self.searchVocabulary(team, team.name))
318
319
 
319
320