Part of lp.bugs.model.tests.test_bugtask View In Hierarchy
Known subclasses: lp.bugs.model.tests.test_bugtask.TestDistributionBugTaskPermissionsToSetAssignee, lp.bugs.model.tests.test_bugtask.TestDistributionNoBugSupervisorBugTaskPermissionsToSetAssignee, lp.bugs.model.tests.test_bugtask.TestProductBugTaskPermissionsToSetAssignee, lp.bugs.model.tests.test_bugtask.TestProductNoBugSupervisorBugTaskPermissionsToSetAssignee
Method | setUp | Create the test setup. |
Method | makeTarget | Create a target and a series. |
Method | setBugSupervisor | Set bug supervisor variables. |
Method | test_userCanSetAnyAssignee_anonymous_user | Undocumented |
Method | test_userCanUnassign_anonymous_user | Undocumented |
Method | test_userCanSetAnyAssignee_regular_user | Undocumented |
Method | test_userCanUnassign_logged_in_user | Undocumented |
Method | test_userCanSetAnyAssignee_target_owner | Undocumented |
Method | test_userCanSetAnyAssignee_bug_supervisor | Undocumented |
Method | test_userCanSetAnyAssignee_driver | Undocumented |
Method | test_userCanSetAnyAssignee_series_driver | Undocumented |
Method | test_userCanSetAnyAssignee_launchpad_admins | Undocumented |
Method | test_userCanSetAnyAssignee_bug_importer | Undocumented |
Method | _setBugSupervisorData | Helper function used by sub-classes to setup bug supervisors. |
Method | _setBugSupervisorDataNone | Helper for sub-classes to work around setting a bug supervisor. |
Create the test setup. We need - bug task targets (a product and a product series, or a distribution and distoseries, see classes derived from this one) - persons and team with special roles: product and distribution, owners, bug supervisors, drivers - bug tasks for the targets
The target and series must be assigned as attributes of self: 'self.target' and 'self.series'.
This is the standard interface for sub-classes, but this method should return _setBugSupervisorData or _setBugSupervisorDataNone depending on what is required.