'Watch then unwatch a thread.'

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)
    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))
