184
184
...>pmount (Debian)</a>...
187
We cannot allow private bugs to affect more than one pillar.
189
>>> from zope.component import getUtility
190
>>> from canonical.launchpad.webapp import canonical_url
191
>>> from canonical.launchpad.webapp.interfaces import ILaunchBag
192
>>> from lp.bugs.interfaces.bug import CreateBugParams
193
>>> from lp.registry.interfaces.product import IProductSet
195
>>> def current_user():
196
... return getUtility(ILaunchBag).user
198
>>> login("foo.bar@canonical.com")
199
>>> productset = getUtility(IProductSet)
200
>>> firefox = productset.get(4)
201
>>> params = CreateBugParams(
202
... title="a test private bug",
203
... comment="a description of the bug",
204
... owner=current_user())
205
>>> private_bug = firefox.createBug(params)
206
>>> private_bug.setPrivate(True, current_user())
210
>>> browser.open(canonical_url(private_bug, rootsite='bugs'))
211
>>> browser.getLink(url='+distrotask').click()
212
>>> browser.getControl(name='field.distribution').value = ['debian']
213
>>> browser.getControl('Continue').click()
215
'http://bugs.launchpad.dev/firefox/+bug/16/+distrotask'
216
>>> print get_feedback_messages(browser.contents)
217
[u'There is 1 error.',
218
u'This private bug already affects Mozilla Firefox.
219
Private bugs cannot affect multiple projects.']
187
222
= Forwarding bugs upstream =
189
224
The +choose-affected-product page is, in fact, a wizard-like page which