'Validate that thin provisioning support is correctly reported'

@ddt.data(False, True)
def test_update_volume_stats_thin_provisioning(self, thin_provisioning):

    fake_pool = copy.deepcopy(eseries_fake.STORAGE_POOL)
    self.library._get_storage_pools = mock.Mock(return_value=[fake_pool])
    self.mock_object(self.library, '_ssc_stats', {fake_pool['volumeGroupRef']: {self.library.THIN_UQ_SPEC: thin_provisioning}})
    self.library._update_volume_stats()
    self.assertEqual(1, len(self.library._stats['pools']))
    pool_stats = self.library._stats['pools'][0]
    self.assertEqual(thin_provisioning, pool_stats.get('thin_provisioning_support'))
    self.assertTrue(pool_stats.get('thick_provisioning_support'))
