'test group snapshot shot with generic group .'

def test_group_snapshot_with_generic_group(self, req):

    req.side_effect = xms_request
    d = self.data
    snapshot_obj = fake_snapshot.fake_snapshot_obj(d.context)
    snapshot_obj.consistencygroup_id = d.group['id']
    self.driver.create_group(d.context, d.group)
    self.driver.update_group(d.context, d.group, add_volumes=[d.test_volume, d.test_volume2])
    snapset_name = self.driver._get_cgsnap_name(d.cgsnapshot_as_group_id)
    self.assertEqual(snapset_name, '192eb39b6c2f420cbae33cfd117f0345192eb39b6c2f420cbae33cfd117f9876')
    snapset1 = {'ancestor-vol-id': ['', d.test_volume['id'], 2], 'consistencygroup_id': d.group['id'], 'name': snapset_name, 'index': 1}
    xms_data['snapshot-sets'] = {snapset_name: snapset1, 1: snapset1}
    res = self.driver.delete_group_snapshot(d.context, d.cgsnapshot, [snapshot_obj])
    self.assertEqual((None, None), res)
