~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2011-06-06 11:09:09 UTC
  • mfrom: (7675.1045.464 db-devel)
  • Revision ID: william.grant@canonical.com-20110606110909-57xmbxl6jxn4ydme
Merge db-stable r10647, resolving conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
from zope.security.proxy import removeSecurityProxy
9
9
 
10
10
from canonical.testing import DatabaseFunctionalLayer
11
 
from lp.bugs.enum import BugNotificationLevel
12
11
from lp.bugs.interfaces.personsubscriptioninfo import (
13
12
    IRealSubscriptionInfo,
14
13
    IRealSubscriptionInfoCollection,
482
481
    def test_is_muted(self):
483
482
        # Subscribed directly to the bug, muted.
484
483
        with person_logged_in(self.subscriber):
485
 
            self.bug.subscribe(self.subscriber, self.subscriber,
486
 
                               level=BugNotificationLevel.NOTHING)
 
484
            self.bug.mute(self.subscriber, self.subscriber)
487
485
 
488
486
        # Load a `PersonSubscriptionInfo`s for subscriber and a bug.
489
487
        self.subscriptions.reload()