def test_watch_thread(self):
        t = ThreadFactory()
        u = UserFactory()

        self.client.login(username=u.username, password='testpass')

        post(self.client, 'forums.watch_thread', {'watch': 'yes'}, args=[t.forum.slug, t.id])
        assert NewPostEvent.is_notifying(u, t)
        # NewThreadEvent is not notifying.
        assert not NewThreadEvent.is_notifying(u, t.forum)

        post(self.client, 'forums.watch_thread', {'watch': 'no'},
             args=[t.forum.slug, t.id])
        assert not NewPostEvent.is_notifying(u, t)
Watch then unwatch a thread.
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_views.py/ThreadTests.test_watch_thread