@mock.patch.object(Site.objects, 'get_current')
    def test_watch_forum_then_new_thread_as_self(self, get_current):
        get_current.return_value.domain = 'testserver'

        u = UserFactory()
        d = DocumentFactory()
        f = self._toggle_watch_kbforum_as(u.username, d, turn_on=True)
        self.client.login(username=u.username, password='testpass')
        post(self.client, 'wiki.discuss.new_thread',
             {'title': 'a title', 'content': 'a post'}, args=[f.slug])
        # Assert no email is sent.
        assert not mail.outbox
Filters all active newsletters
dataset/ETHPy150Open mozilla/kitsune/kitsune/kbforums/tests/test_notifications.py/NotificationsTests.test_watch_forum_then_new_thread_as_self--crossover with--dataset/ETHPy150Open allink/pennyblack/pennyblack/models/newsletter.py/NewsletterManager.active