'test cg create from cgsnapshot fails on vol_copy'

def test_create_consistencygroup_from_src_fails_vol_copy_from_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.vol_copy.side_effect = errors.XCLIError('bla', 'bla', ElementTree.Element('bla'))
    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)
    ex = getattr(p, '_get_exception')()
    self.assertRaises(ex, p.create_group_from_src, {}, group_obj, [volume], cgsnap_group_obj, [snapshot], None, None)
