'Replying to a thread creates a watch.'

@mock.patch.object(Site.objects, 'get_current')
def test_autowatch_reply(self, get_current):

    get_current.return_value.domain = 'testserver'
    u = UserFactory()
    t1 = ThreadFactory()
    t2 = ThreadFactory()
    assert (not NewPostEvent.is_notifying(u, t1))
    assert (not NewPostEvent.is_notifying(u, t2))
    self.client.login(username=u.username, password='testpass')
    s = Setting.objects.create(user=u, name='forums_watch_after_reply', value='True')
    data = {'content': 'some    content'}
    post(self.client, 'forums.reply', data, args=[t1.forum.slug, t1.pk])
    assert NewPostEvent.is_notifying(u, t1)
    s.value = 'False'
    s.save()
    post(self.client, 'forums.reply', data, args=[t2.forum.slug, t2.pk])
    assert (not NewPostEvent.is_notifying(u, t2))
