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

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

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