def METHOD_NAME(self):
    message = (
        "generate\n\n"
        "has been replaced by the -generate "
        "cli option. Refer to -help for more information.\n"
    )
    self.log.info("Test rpc generate raises with message to use cli option")
    assert_raises_rpc_error(-32601, message, self.nodes[0].rpc.generate)
    self.log.info("Test rpc generate help prints message to use cli option")
    assert_equal(message, self.nodes[0].help("generate"))
    self.log.info("Test rpc generate is a hidden command not discoverable in general help")
    assert message not in self.nodes[0].help()