l.b.m.t.t.TestBugTaskPermissionsToSetAssigneeMixin : class documentation

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

No class docstring
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.
def setUp(self):
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
def makeTarget(self):
Create a target and a series.

The target and series must be assigned as attributes of self: 'self.target' and 'self.series'.

def setBugSupervisor(self):
Set bug supervisor variables.

This is the standard interface for sub-classes, but this method should return _setBugSupervisorData or _setBugSupervisorDataNone depending on what is required.

def _setBugSupervisorData(self):
Helper function used by sub-classes to setup bug supervisors.
def _setBugSupervisorDataNone(self):
Helper for sub-classes to work around setting a bug supervisor.
def test_userCanSetAnyAssignee_anonymous_user(self):
Undocumented
def test_userCanUnassign_anonymous_user(self):
Undocumented
def test_userCanSetAnyAssignee_regular_user(self):
Undocumented
def test_userCanUnassign_logged_in_user(self):
Undocumented
def test_userCanSetAnyAssignee_target_owner(self):
Undocumented
def test_userCanSetAnyAssignee_bug_supervisor(self):
Undocumented
def test_userCanSetAnyAssignee_driver(self):
Undocumented
def test_userCanSetAnyAssignee_series_driver(self):
Undocumented
def test_userCanSetAnyAssignee_launchpad_admins(self):
Undocumented
def test_userCanSetAnyAssignee_bug_importer(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2020-09-28 00:00:12.