'test a successful cgsnapshot create'

def test_create_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()
    group_obj = self._create_test_group()
    cgsnap_group_obj = self._create_test_cgsnapshot(group_obj.id)
    (model_update, snapshots_model_update) = p.create_group_snapshot({}, cgsnap_group_obj, [])
    p.ibm_storage_cli.cmd.cg_snapshots_create.assert_called_once_with(cg=p._cg_name_from_cgsnapshot(cgsnap_group_obj), snap_group=p._group_name_from_cgsnapshot_id(cgsnap_group_obj['id']))
    self.assertEqual('available', model_update['status'])
