Beispiel #1
0
 def __check_hash__(self):
     """
     Raises EventHashError, unless self.__event_hash__ can
     be derived from the current state of the event object.
     """
     state = self.__dict__.copy()
     event_hash = state.pop('__event_hash__')
     if event_hash != self.__hash_object__(state):
         raise EventHashError()
Beispiel #2
0
 def __check_hash__(self) -> None:
     """
     Raises EventHashError, unless self.__event_hash__ can
     be derived from the current state of the event object.
     """
     state = self.__dict__.copy()
     event_hash = state.pop("__event_hash__")
     method_name = state.get("__event_hash_method_name__",
                             "__hash_object_v1__")
     hash_method = getattr(self, method_name)
     if event_hash != hash_method(state):
         raise EventHashError()
Beispiel #3
0
 def __check_hash__(self):
     state = self.__dict__.copy()
     event_hash = state.pop('__event_hash__')
     if event_hash != self.__hash_for_data_integrity__(state):
         raise EventHashError()
Beispiel #4
0
 def __check_hash__(self):
     state = self.__dict__.copy()
     event_hash = state.pop('__event_hash__')
     if event_hash != self.__hash_object__(state):
         raise EventHashError()