code: def test_rename(self):
      from_path = "/path/from"
      to_path = "/path/to"
      with fh.FTPHook() as ftp_hook:
          ftp_hook.rename(from_path, to_path)
  
      self.conn_mock.rename.assert_called_once_with(from_path, to_path)
      self.conn_mock.quit.assert_called_once_with()
  
imports: from __future__ import annotations
  from io import StringIO
  from unittest import mock
  import pytest
  from airflow.providers.ftp.hooks import ftp
label_desc: Use image node_id 9 for calling the TestFTPHook obj's underlying member method code with example usage: obj.test_rename() without return types