157
157
There is 1 error in the data you entered. Please fix it and try again.
159
159
Constraint not satisfied
161
The unassign option is only shown if the current assignee is the user
162
or one of his teams...
164
>>> user_browser.open("http://bugs.launchpad.dev/jokosher/+bug/11")
165
>>> assignee_control = user_browser.getControl(
166
... name="jokosher.assignee.option", index=0)
167
>>> assignee_control.value = ["jokosher.assignee.assign_to_nobody"]
168
>>> user_browser.getControl("Save Changes", index=0).click()
170
...or if there is no assignee.
172
>>> assignee_control = user_browser.getControl(
173
... name="jokosher.assignee.option", index=0)
174
>>> assignee_control.value = ["jokosher.assignee.assign_to_nobody"]
176
If the bugtask is assigned to anybody else, the unassign option is not
179
>>> admin_browser.open("http://bugs.launchpad.dev/jokosher/+bug/11")
180
>>> assignee_control = admin_browser.getControl(
181
... name="jokosher.assignee.option", index=0)
182
>>> assignee_control.value = ["jokosher.assignee.assign_to_me"]
183
>>> admin_browser.getControl("Save Changes", index=0).click()
184
>>> user_browser.open("http://bugs.launchpad.dev/jokosher/+bug/11")
185
>>> assignee_control = user_browser.getControl(
186
... name="jokosher.assignee.option", index=0)
187
>>> assignee_control.value = ["jokosher.assignee.assign_to_nobody"]
188
Traceback (most recent call last):
190
ItemNotFoundError: insufficient items with name
191
'jokosher.assignee.assign_to_nobody'