'Watch and unwatch a thread.'

def test_watch_thread(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    t = ThreadFactory()
    response = post(self.client, 'wiki.discuss.watch_thread', {'watch': 'yes'}, args=[t.document.slug, t.id])
    self.assertContains(response, 'Stop')
    response = post(self.client, 'wiki.discuss.watch_thread', {'watch': 'no'}, args=[t.document.slug, t.id])
    self.assertNotContains(response, 'Stop')
