'Ensure that the SSC data is correctly reported in the pool stats'

def test_update_volume_stats_ssc(self):

    ssc = {self.library.THIN_UQ_SPEC: True, 'key': 'val'}
    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']: ssc})
    self.library._update_volume_stats()
    self.assertEqual(1, len(self.library._stats['pools']))
    pool_stats = self.library._stats['pools'][0]
    for key in ssc:
        self.assertIn(key, pool_stats)
        self.assertEqual(ssc[key], pool_stats[key])
