'test delete_consistenygroup when CG does not exist bad name'

def test_delete_consistencygroup_not_exists_2(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_delete.side_effect = errors.CgBadNameError('bla', 'bla', ElementTree.Element('bla'))
    group_obj = self._create_test_group()
    (model_update, volumes) = p.delete_group({}, group_obj, [])
    p.ibm_storage_cli.cmd.cg_delete.assert_called_once_with(cg=p._cg_name_from_id(group_obj.id))
    self.assertEqual('deleted', model_update['status'])
