~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Gavin Panella
  • Date: 2012-01-04 15:43:37 UTC
  • mto: This revision was merged to the branch mainline in revision 14638.
  • Revision ID: gavin.panella@canonical.com-20120104154337-kip10cnk3mc055ze
Update test_forLevel() and test_muted() with jtv's suggestions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
    def test_forLevel(self):
172
172
        # `forLevel` returns a new `BugSubscriptionInfo` narrowed to the given
173
173
        # subscription level.
174
 
        info = self.getInfo()
 
174
        info = self.getInfo(BugNotificationLevel.LIFECYCLE)
175
175
        # If called with the current level the same `BugSubscriptionInfo`
176
176
        # instance is returned.
177
177
        self.assertIs(info, info.forLevel(info.level))
200
200
        sub1, sub2 = subscribers
201
201
        with person_logged_in(sub1):
202
202
            self.bug.mute(sub1, sub1)
203
 
        self.assertEqual(set([sub1]), self.getInfo().muted_subscribers)
 
203
        self.assertContentEqual([sub1], self.getInfo().muted_subscribers)
204
204
 
205
205
    def test_direct(self):
206
206
        # The set of direct subscribers.