~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
 
167
167
    implements(IBugNotificationSet)
168
168
 
169
 
    def getFiltersByRecipient(self, notifications, recipient):
170
 
        return []
 
169
    def getRecipientFilterData(self, recipient_to_sources, notifications):
 
170
        return dict(
 
171
            (recipient, {'sources': sources, 'filter descriptions': []})
 
172
            for recipient, sources in recipient_to_sources.items())
171
173
 
172
174
 
173
175
class MockBugActivity:
267
269
        sm = getSiteManager()
268
270
        sm.unregisterUtility(self._fake_utility)
269
271
        sm.registerUtility(self._original_utility)
270
 
        
271
272
 
272
273
    def _getAndCheckSentNotifications(self, notifications_to_send):
273
274
        """Return the notifications that were successfully sent.