'test update_consistencygroup'

def test_update_consistencygroup(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()
    group_obj = self._create_test_group()
    vol_add = testutils.create_volume(self.ctxt, display_name='WTF32')
    vol_remove = testutils.create_volume(self.ctxt, display_name='WTF64')
    (model_update, add_model_update, remove_model_update) = p.update_group({}, group_obj, [vol_add], [vol_remove])
    p.ibm_storage_cli.cmd.cg_add_vol.assert_called_once_with(vol=vol_add['name'], cg=p._cg_name_from_id(group_obj.id))
    p.ibm_storage_cli.cmd.cg_remove_vol.assert_called_once_with(vol=vol_remove['name'])
    self.assertEqual('available', model_update['status'])
