def METHOD_NAME(self):
    self.login_test1()
    d = self.create_doc()
    self.json_post(
        f"/alias/{d.path}",
        {"new_name": self.current_user.get_personal_folder().path + "//foo"},
        expect_status=400,
        expect_content="The document path cannot have empty parts.",
    )