~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/tests/test_bugnotification.py

  • Committer: Abel Deuring
  • Date: 2011-07-27 16:22:36 UTC
  • mfrom: (13539 devel)
  • mto: This revision was merged to the branch mainline in revision 13587.
  • Revision ID: abel.deuring@canonical.com-20110727162236-m5e4e45257ehq65r
devel merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
from lazr.lifecycle.snapshot import Snapshot
14
14
from storm.store import Store
15
15
from testtools.matchers import Not
16
 
from zope.component import getUtility
17
16
from zope.event import notify
18
17
from zope.interface import providedBy
19
18
 
29
28
from lp.answers.tests.test_question_notifications import pop_questionemailjobs
30
29
from lp.bugs.interfaces.bugtask import (
31
30
    BugTaskStatus,
32
 
    IUpstreamBugTask,
 
31
    IBugTask,
33
32
    )
34
33
from lp.bugs.model.bugnotification import (
35
34
    BugNotification,
134
133
        # Ensure that notifications are sent to subscribers of a
135
134
        # question linked to the expired bug.
136
135
        bugtask = self.bug.default_bugtask
137
 
        bugtask_before_modification = Snapshot(
138
 
            bugtask, providing=IUpstreamBugTask)
 
136
        bugtask_before_modification = Snapshot(bugtask, providing=IBugTask)
139
137
        bugtask.transitionToStatus(BugTaskStatus.EXPIRED, self.product.owner)
140
138
        bug_modified = ObjectModifiedEvent(
141
139
            bugtask, bugtask_before_modification, ["status"])