'Trying to reply to a locked thread should raise an exception.'

@raises(ThreadLockedError)
def test_locked_thread(self):

    locked = ThreadFactory(is_locked=True)
    user = UserFactory()
    locked.new_post(author=user, content='empty')
