def check_values_are_not_equal(self, question, comparison_val_one, comparison_val_two, result): CheckMessagesContributorDetails( ).check_if_overall_validation_triggered() if comparison_val_one == 'blank' and comparison_val_two == 'blank': comparison_val_one = Utilities.convert_blank_data_value( comparison_val_one) comparison_val_two = Utilities.convert_blank_data_value( comparison_val_two) is_validation_exists = ReportingHelper.compare_strings( comparison_val_one, comparison_val_two) else: is_validation_exists = ReportingHelper.compare_values_are_not_equal( comparison_val_one, comparison_val_two) ReportingHelper.check_single_message_matches( question, result, str(is_validation_exists).lower())
def check_values_movement_to_or_from_zero(self, question_codes, comparison_val_one, comparison_val_two, result): CheckMessagesContributorDetails( ).check_if_overall_validation_triggered() if len(question_codes) > 1: for question in question_codes: if comparison_val_one == 'blank' and comparison_val_two == 'blank': value_one = Utilities.convert_blank_data_value( comparison_val_one) value_two = Utilities.convert_blank_data_value( comparison_val_two) is_validation_exists = ReportingHelper.compare_strings( value_one, value_two) else: is_validation_exists = ReportingHelper.compare_the_zero_movement_values( comparison_val_one, comparison_val_two) ReportingHelper.check_single_message_matches( question, result, str(is_validation_exists).lower())