130
130
>>> check_permission('launchpad.LimitedView', priv_team)
133
User who can see a branch can also see private teams for which reviews have
135
>>> some_person = factory.makePerson()
136
>>> login_person(priv_owner)
137
>>> product = factory.makeProduct()
138
>>> target_branch = factory.makeBranch(
139
... owner=priv_owner, private=True, product=product)
140
>>> source_branch = factory.makeBranch(
141
... owner=priv_owner, product=product)
142
>>> bmp = factory.makeBranchMergeProposal(
143
... source_branch=source_branch, target_branch=target_branch,
144
... reviewer=priv_team, registrant=priv_owner)
145
>>> login_person(some_person)
146
>>> check_permission('launchpad.LimitedView', priv_team)
148
>>> login_person(priv_owner)
149
>>> sub = factory.makeBranchSubscription(
150
... branch=target_branch, person=some_person,
151
... subscribed_by=priv_owner)
153
>>> login_person(some_person)
154
>>> check_permission('launchpad.LimitedView', priv_team)
157
133
Subscribers to the teams private PPA have limited view permission.
159
135
>>> login_person(priv_owner)