@mock.patch.object(rest_client.KioxiaProvisioner, 'get_tenants')
def test_get_volume_stats(self, mock_get_tenants):
    tenant = TenantEntity(1000, 400)
    mock_get_tenants.return_value = entities.ProvisionerResponse([tenant])
    result = self.driver.get_volume_stats(True)
    mock_get_tenants.assert_any_call()
    self.assertDictEqual(result, self.expected_stats)
@mock.patch.object(rest_client.KioxiaProvisioner, 'get_tenants')
def test_get_volume_stats(self, mock_get_tenants):
    tenant = TenantEntity(1000, 400)
    mock_get_tenants.return_value = entities.ProvisionerResponse([tenant])
    result = self.driver.get_volume_stats(True)
    mock_get_tenants.assert_any_call()
    self.assertDictEqual(result, self.expected_stats)