'Test group update.'

@mock.patch('cinder.volume.utils.is_group_a_cg_snapshot_type')
def test_storwize_group_update(self, is_grp_a_cg_snapshot_type):

    is_grp_a_cg_snapshot_type.side_effect = [False, True]
    group = mock.MagicMock()
    self.assertRaises(NotImplementedError, self.driver.update_group, self.ctxt, group, None, None)
    (model_update, add_volumes_update, remove_volumes_update) = self.driver.update_group(self.ctxt, group)
    self.assertIsNone(model_update)
    self.assertIsNone(add_volumes_update)
    self.assertIsNone(remove_volumes_update)
