def check_refusal_event_logging(context, expected_event_list): check_if_event_list_is_exact_match(expected_event_list, context.refused_case_id)
def events_logged_for_fieldwork_cases(context, event_type_list): for case_id in context.fieldwork_case_ids: check_if_event_list_is_exact_match(event_type_list, case_id)
def check_logged_events_for_emitted_case(context, expected_event_list): check_if_event_list_is_exact_match(expected_event_list, context.first_case['id'])
def check_events_logged_on_loaded_and_ind_case(context, loaded_case_events, individual_case_events=None): check_if_event_list_is_exact_match(loaded_case_events, context.loaded_case['id']) if individual_case_events and len(individual_case_events.replace('[', '').replace(']', '')) > 0: check_if_event_list_is_exact_match(individual_case_events, context.receipting_case['id'])
def check_survey_launch_event_logging(context, expected_event_list): check_if_event_list_is_exact_match(expected_event_list, context.survey_launched_case_id)
def check_individual_case_events_logged(context, expected_event_list): check_if_event_list_is_exact_match(expected_event_list, context.individual_case_id)
def check_multiple_questionnaire_fulfilment_events(context, expected_event_list): for caze in context.print_cases: check_if_event_list_is_exact_match(expected_event_list, caze['id'])
def check_questionnaire_fulfilment_events(context, expected_event_list): check_if_event_list_is_exact_match(expected_event_list, context.first_case['id'])
def check_individual_fulfilment_events(context, expected_event_list): check_if_event_list_is_exact_match(expected_event_list, context.individual_case_id)
def check_fulfilment_events(context, expected_event_list): check_if_event_list_is_exact_match(expected_event_list, context.fulfilment_requested_case_id)