'Watch then unwatch a forum.'

def test_watch_forum(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    d = DocumentFactory()
    post(self.client, 'wiki.discuss.watch_forum', {'watch': 'yes'}, args=[d.slug])
    assert NewThreadEvent.is_notifying(u, d)
    t = ThreadFactory(document=d)
    p = t.new_post(creator=t.creator, content='test')
    assert (not NewPostEvent.is_notifying(u, p))
    post(self.client, 'wiki.discuss.watch_forum', {'watch': 'no'}, args=[d.slug])
    assert (not NewThreadEvent.is_notifying(u, d))
