@mock.patch.object(rest_client.KioxiaProvisioner, 'unpublish')
def test_terminate_connection_unpublish_failure(self, mock_unpublish):
    testvol = _stub_volume()
    testconn = _stub_connector()
    mock_unpublish.return_value = fail_prov_response
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.terminate_connection, testvol, testconn)
@mock.patch.object(rest_client.KioxiaProvisioner, 'unpublish')
def test_terminate_connection_unpublish_failure(self, mock_unpublish):
    testvol = _stub_volume()
    testconn = _stub_connector()
    mock_unpublish.return_value = fail_prov_response
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.terminate_connection, testvol, testconn)