def METHOD_NAME(self):
    """Trying to reply to a locked thread should raise an exception."""
    locked = ThreadFactory(is_locked=True)
    with self.assertRaises(ThreadLockedError):
        locked.new_post(creator=locked.creator, content="foo")