'test a successful cg create from cgsnapshot'

def test_create_consistencygroup_from_src_cgsnapshot(self):

    driver = mock.MagicMock()
    driver.VERSION = 'VERSION'
    p = self.proxy(self.default_storage_info, mock.MagicMock(), test_mock.cinder.exception, driver)
    p.ibm_storage_cli = mock.MagicMock()
    p.ibm_storage_cli.cmd.create_volume_from_snapshot.return_value = []
    group_obj = self._create_test_group()
    cgsnap_group_obj = self._create_test_cgsnapshot(group_obj.id)
    volume = testutils.create_volume(self.ctxt)
    snapshot = testutils.create_snapshot(self.ctxt, volume.id)
    (model_update, vols_model_update) = p.create_group_from_src({}, group_obj, [volume], cgsnap_group_obj, [snapshot], None, None)
    p.ibm_storage_cli.cmd.cg_create.assert_called_once_with(cg=p._cg_name_from_id(group_obj.id), pool='WTF32')
    self.assertEqual('available', model_update['status'])
