~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/tests/test_bug.py

  • Committer: Gavin Panella
  • Date: 2012-01-04 17:46:45 UTC
  • mto: This revision was merged to the branch mainline in revision 14638.
  • Revision ID: gavin.panella@canonical.com-20120104174645-w5dw4az8973y1upt
Fix lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
627
627
        # If the bug is for a private project, then other direct subscribers
628
628
        # should be unsubscribed.
629
629
 
630
 
        (bug, bug_owner,  bugtask_a, bugtask_b, default_bugtask) = (
 
630
        (bug, bug_owner, bugtask_a, bugtask_b, default_bugtask) = (
631
631
            self.createBugTasksAndSubscribers())
632
632
        initial_subscribers = set((
633
633
            self.factory.makePerson(), bugtask_a.owner, bug_owner,
660
660
        # If the bug is for a private project, then other direct subscribers
661
661
        # should be unsubscribed.
662
662
 
663
 
        (bug, bug_owner,  bugtask_a, bugtask_b, default_bugtask) = (
 
663
        (bug, bug_owner, bugtask_a, bugtask_b, default_bugtask) = (
664
664
            self.createBugTasksAndSubscribers(private_security_related=True))
665
665
        initial_subscribers = set((
666
666
            self.factory.makePerson(), bug_owner,
691
691
        # If the bug is for a private project, then other direct subscribers
692
692
        # should be unsubscribed.
693
693
 
694
 
        (bug, bug_owner,  bugtask_a, bugtask_b, default_bugtask) = (
 
694
        (bug, bug_owner, bugtask_a, bugtask_b, default_bugtask) = (
695
695
            self.createBugTasksAndSubscribers(private_security_related=True))
696
696
        initial_subscribers = set((
697
 
            self.factory.makePerson(),  bug_owner,
 
697
            self.factory.makePerson(), bug_owner,
698
698
            bugtask_a.pillar.security_contact, bugtask_a.pillar.driver,
699
699
            bugtask_a.pillar.bug_supervisor))
700
700
 
718
718
        # When a bug is marked as private=false and security_related=false,
719
719
        # any existing subscriptions are left alone.
720
720
 
721
 
        (bug, bug_owner,  bugtask_a, bugtask_b, default_bugtask) = (
 
721
        (bug, bug_owner, bugtask_a, bugtask_b, default_bugtask) = (
722
722
            self.createBugTasksAndSubscribers(private_security_related=True))
723
723
        initial_subscribers = set((
724
724
            self.factory.makePerson(), bug_owner,
825
825
        # The bug supervisors are unsubscribed if a bug is made public and an
826
826
        # email is sent telling them they have been unsubscribed.
827
827
 
828
 
        (bug, bug_owner,  bugtask_a, bugtask_b, default_bugtask) = (
 
828
        (bug, bug_owner, bugtask_a, bugtask_b, default_bugtask) = (
829
829
            self.createBugTasksAndSubscribers(private_security_related=True))
830
830
 
831
831
        with person_logged_in(bug_owner):
870
870
        # set to false and an email is sent telling them they have been
871
871
        # unsubscribed.
872
872
 
873
 
        (bug, bug_owner,  bugtask_a, bugtask_b, default_bugtask) = (
 
873
        (bug, bug_owner, bugtask_a, bugtask_b, default_bugtask) = (
874
874
            self.createBugTasksAndSubscribers(private_security_related=True))
875
875
 
876
876
        with person_logged_in(bug_owner):