(self, event_data)
return predicate(*event_data.args, **event_data.kwargs) == self.target
Check whether the condition passes.
        Args:
            event_data (EventData): An EventData instance to pass to the
                condition (if event sending is enabled) or to extract arguments
                from (if event sending is disabled). Also contains the data
                model attached to the current machine which is used to invoke
                the condition.
Check whether the condition passes.
        Args:
            event_data (EventData): An EventData instance to pass to the
                condition (if event sending is enabled) or to extract arguments
                from (if event sending is disabled). Also contains the data
                model attached to the current machine which is used to invoke
                the condition.
Check whether the condition passes . Args : event_data ( EventData ) : An EventData instance to pass to the condition ( if event sending is enabled ) or to extract arguments from ( if event sending is disabled ) . Also contains the data model attached to the current machine which is used to invoke the condition .
def check(self, event_data):
        """ Check whether the condition passes.
        Args:
            event_data (EventData): An EventData instance to pass to the
                condition (if event sending is enabled) or to extract arguments
                from (if event sending is disabled). Also contains the data
                model attached to the current machine which is used to invoke
                the condition.
        """
        predicate = event_data.machine.resolve_callable(self.func, event_data)
        if event_data.machine.send_event:
            return predicate(event_data) == self.target
        return predicate(*event_data.args, **event_data.kwargs) == self.target
def check ( self , event_data ) : predicate = event_data . machine . resolve_callable ( self . func , event_data ) if event_data . machine . send_event : return predicate ( event_data ) == self . target return predicate ( * event_data . args , * * event_data . kwargs ) == self . target