'test a successful consistency group snapshot deletion.'

def test_delete_consistency_group_snapshot_sucessfully(self):

    self.driver = FakeDS8KProxy(self.storage_info, self.logger, self.exception, self)
    self.driver.setup(self.ctxt)
    group_type = group_types.create(self.ctxt, 'group', {'consistent_group_snapshot_enabled': '<is>    True'})
    group = self._create_group(group_type_id=group_type.id)
    location = six.text_type({'vol_hex_id': '2000'})
    volume = self._create_volume(provider_location=location, group_id=group.id)
    group_snapshot = self._create_group_snapshot(group_id=group.id, group_type_id=group_type.id)
    snapshot = self._create_snapshot(volume_id=volume.id, group_snapshot_id=group_snapshot.id)
    (model_update, snapshots_model_update) = self.driver.delete_group_snapshot(self.ctxt, group_snapshot, [snapshot])
    self.assertEqual('deleted', snapshots_model_update[0]['status'])
    self.assertEqual(fields.GroupSnapshotStatus.DELETED, model_update['status'])
