'The event fires when there is a new thread.'

@mock.patch.object(NewThreadEvent, 'fire')
def test_fire_on_new_thread(self, fire):

    d = DocumentFactory()
    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    post(self.client, 'wiki.discuss.new_thread', {'title': 'a    title', 'content': 'a    post'}, args=[d.slug])
    assert fire.called
