@classmethod
    def format_node_to_restore(cls, node):
        # only fake tasks
        if cls.use_fake():
            new_node = {}
            reset_attrs = (
                'id',
                'cluster_id',
                'roles',
                'pending_deletion',
                'pending_addition',
                'group_id',
                'hostname',
            )
            for prop in object_mapper(node).iterate_properties:
                if isinstance(
                    prop, ColumnProperty
                ) and prop.key not in reset_attrs:
                    new_node[prop.key] = getattr(node, prop.key)
            return new_node
        # /only fake tasks
A user shouldnt be able to verify a timesheet if it contains
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/task/task.py/DeletionTask.format_node_to_restore--crossover with--dataset/ETHPy150Open caktus/django-timepiece/timepiece/entries/tests/test_timesheet.py/StatusTest.test_verify_active_entry