'Watching a forum and replying to a thread should send email.'

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

    get_current.return_value.domain = 'testserver'
    t = ThreadFactory()
    f = t.forum
    PostFactory(thread=t)
    poster = UserFactory()
    watcher = UserFactory()
    self._toggle_watch_forum_as(f, watcher, turn_on=True)
    self.client.login(username=poster.username, password='testpass')
    post(self.client, 'forums.reply', {'content': 'a    post'}, args=[f.slug, t.id])
    p = Post.objects.all().order_by('-id')[0]
    attrs_eq(mail.outbox[0], to=[watcher.email], subject=u'Re:    {f}    -    {t}'.format(f=f, t=t))
    body = REPLY_EMAIL.format(username=poster.profile.name, forum_slug=f.slug, thread=t.title, thread_id=t.id, post_id=p.id)
    starts_with(mail.outbox[0].body, body)
