def is_matching_event(expected_event, actual_event, tolerate=None):
 return (len(get_event_differences(expected_event, actual_event, tolerate=tolerate)) == 0)

def is_matching_event ( expected_event , actual_event , tolerate = None ) : return ( len ( get_event_differences ( expected_event , actual_event , tolerate = tolerate ) ) == 0 )
return true iff the actual_event matches the expected_event given the tolerances .