~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-30 20:34:30 UTC
  • mfrom: (14207.2.2 minilint-4)
  • Revision ID: launchpad@pqm.canonical.com-20111030203430-dy1g2zqmfr11ur00
[r=bac][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    datetime,
8
8
    timedelta,
9
9
    )
 
10
 
10
11
from pytz import UTC
11
 
 
12
12
from storm.store import Store
13
13
from testtools.testcase import ExpectedException
14
14
from zope.component import getUtility
21
21
    BugNotificationLevel,
22
22
    BugNotificationStatus,
23
23
    )
24
 
from lp.bugs.model.bugnotification import BugNotificationRecipient
25
 
from lp.bugs.scripts.bugnotification import get_email_notifications
26
24
from lp.bugs.interfaces.bugnotification import IBugNotificationSet
27
25
from lp.bugs.interfaces.bugtask import BugTaskStatus
28
26
from lp.bugs.model.bug import (
29
27
    BugNotification,
30
28
    BugSubscriptionInfo,
31
29
    )
 
30
from lp.bugs.model.bugnotification import BugNotificationRecipient
 
31
from lp.bugs.scripts.bugnotification import get_email_notifications
32
32
from lp.registry.interfaces.person import PersonVisibility
33
33
from lp.services.features.testing import FeatureFixture
34
34
from lp.testing import (
759
759
            bug.setPrivacyAndSecurityRelated(
760
760
                private=False, security_related=True, who=who)
761
761
            subscribers = bug.getDirectSubscribers()
762
 
            self.assertFalse(default_bugtask.pillar.bug_supervisor in subscribers)
 
762
            self.assertNotIn(
 
763
                default_bugtask.pillar.bug_supervisor, subscribers)
763
764
 
764
765
            expected_recipients = [
765
766
                default_bugtask.pillar.bug_supervisor,