+ elif (user.inTeam(self.pillar.bug_supervisor) or user.inTeam(self.pillar.owner) or user.id == celebrities.bug_watch_updater.id or user.id == celebrities.bug_importer.id or
Not your code, but the following lines don't line up.
[2]
+ user == self.bug.owner):
Here (and elsewhere) inTeam() is not used. Works but seems odd to not
use inTeam() because it will DTRT for individuals and teams.
[3]
+ layer = LaunchpadFunctionalLayer
You might be able to get away with DatabaseFunctionalLayer here.
Cool :) A few trivial comments, that's it.
[1]
+ elif (user.inTeam( self.pillar. bug_supervisor) or
user. inTeam( self.pillar. owner) or
user. id == celebrities. bug_watch_ updater. id or
user. id == celebrities. bug_importer. id or
Not your code, but the following lines don't line up.
[2]
+ user == self.bug.owner):
Here (and elsewhere) inTeam() is not used. Works but seems odd to not
use inTeam() because it will DTRT for individuals and teams.
[3]
+ layer = LaunchpadFuncti onalLayer
You might be able to get away with DatabaseFunctio nalLayer here.
[4]
+ self.assertEqual( canTransitionTo Status( CONFIRMED, self.reporter),
+ self.task.
+ BugTaskStatus.
+ True)
self.assertTrue() would work here too.