'Watching a forum and creating a new thread as myself should not
send email.'

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

    get_current.return_value.domain = 'testserver'
    u = UserFactory()
    d = DocumentFactory()
    f = self._toggle_watch_kbforum_as(u.username, d, turn_on=True)
    self.client.login(username=u.username, password='testpass')
    post(self.client, 'wiki.discuss.new_thread', {'title': 'a    title', 'content': 'a    post'}, args=[f.slug])
    assert (not mail.outbox)
