def _modify_execution_status_in_database(
            self, execution, new_status):
        try:
            execution_id = execution['id']
        except __HOLE__:
            execution_id = execution.id
        storage_manager._get_instance().update_execution_status(
            execution_id, new_status, error='')
        updated_execution = self.client.executions.get(
            execution_id=execution_id)
        self.assertEqual(new_status, updated_execution['status'])
dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/rest-service/manager_rest/test/test_executions.py/ExecutionsTestCase._modify_execution_status_in_database