'test group from source snapshot.'

def test_group_from_src_snapshot(self, req):

    req.side_effect = xms_request
    d = self.data
    self.driver.create_group(d.context, d.group)
    self.driver.create_volume(d.test_volume)
    self.driver.create_group_snapshot(d.context, d.cgsnapshot, [])
    xms_data['volumes'][2]['ancestor-vol-id'] = xms_data['volumes'][1]['vol-id']
    snapset_name = self.driver._get_cgsnap_name(d.cgsnapshot)
    snapset1 = {'vol-list': [xms_data['volumes'][2]['vol-id']], 'name': snapset_name, 'index': 1}
    xms_data['snapshot-sets'] = {snapset_name: snapset1, 1: snapset1}
    cg_obj = fake_cg.fake_consistencyobject_obj(d.context)
    new_vol1 = fake_volume_obj(d.context)
    snapshot1 = fake_snapshot.fake_snapshot_obj(d.context, volume_id=d.test_volume['id'])
    res = self.driver.create_group_from_src(d.context, cg_obj, [new_vol1], d.cgsnapshot, [snapshot1])
    self.assertEqual((None, None), res)
