~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Merge db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
        self.initial_filter = self.subscription.bug_filters[0]
158
158
 
159
159
    def assertSubscribers(
160
 
        self, expected_subscribers, level=BugNotificationLevel.NOTHING):
 
160
        self, expected_subscribers, level=BugNotificationLevel.LIFECYCLE):
161
161
        observed_subscribers = list(
162
162
            get_structural_subscribers(self.bugtask, None, level))
163
163
        self.assertEqual(expected_subscribers, observed_subscribers)
211
211
        self.initial_filter.bug_notification_level = (
212
212
            BugNotificationLevel.METADATA)
213
213
 
214
 
        # The subscription is found when looking for NOTHING or above.
 
214
        # The subscription is found when looking for LIFECYCLE or above.
215
215
        self.assertSubscribers(
216
 
            [self.ordinary_subscriber], BugNotificationLevel.NOTHING)
 
216
            [self.ordinary_subscriber], BugNotificationLevel.LIFECYCLE)
217
217
        # The subscription is found when looking for METADATA or above.
218
218
        self.assertSubscribers(
219
219
            [self.ordinary_subscriber], BugNotificationLevel.METADATA)