'Watch a thread and return it.'

def _toggle_watch_thread_as(self, username, thread, turn_on=True):

    self.client.login(username=username, password='testpass')
    user = User.objects.get(username=username)
    watch = ('yes' if turn_on else 'no')
    post(self.client, 'wiki.discuss.watch_thread', {'watch': watch}, args=[thread.document.slug, thread.id])
    if turn_on:
        assert NewPostEvent.is_notifying(user, thread), 'NewPostEvent    should    be    notifying.'
    else:
        assert (not NewPostEvent.is_notifying(user, thread)), 'NewPostEvent    should    not    be    notifying.'
    return thread
