'test update_consistencygroup with exception in cg_add_vol'

def test_update_consistencygroup_exception_in_add_vol(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.cg_add_vol.side_effect = errors.XCLIError('bla', 'bla', ElementTree.Element('bla'))
    group_obj = self._create_test_group()
    vol_add = testutils.create_volume(self.ctxt, display_name='WTF32')
    ex = getattr(p, '_get_exception')()
    self.assertRaises(ex, p.update_group, {}, group_obj, [vol_add], [])
