@mock.patch.object(rest_client.KioxiaProvisioner, 'unpublish')
def test_terminate_connection(self, mock_unpublish):
    testvol = _stub_volume()
    testconn = _stub_connector()
    mock_unpublish.return_value = success_prov_response
    result = self.driver.terminate_connection(testvol, testconn)
    mock_unpublish.assert_any_call(testconn['uuid'], testvol['id'])
    self.assertIsNone(result)
@mock.patch.object(rest_client.KioxiaProvisioner, 'unpublish')
def test_terminate_connection(self, mock_unpublish):
    testvol = _stub_volume()
    testconn = _stub_connector()
    mock_unpublish.return_value = success_prov_response
    result = self.driver.terminate_connection(testvol, testconn)
    mock_unpublish.assert_any_call(testconn['uuid'], testvol['id'])
    self.assertIsNone(result)