def test_raises_on_duplicate_ticket(self): assert_raise_library_error( lambda: config_structure.validate_ticket_unique( [config_structure.ConfigItem("ticket", "A")], "A"), ( severities.ERROR, report_codes.BOOTH_TICKET_DUPLICATE, { "ticket_name": "A", }, ), )
def test_raises_on_duplicate_ticket(self): assert_raise_library_error( lambda: config_structure.validate_ticket_unique( [config_structure.ConfigItem("ticket", "A")], "A" ), ( severities.ERROR, report_codes.BOOTH_TICKET_DUPLICATE, { "ticket_name": "A", }, ), )
def test_do_not_raises_when_no_duplicated_ticket(self): config_structure.validate_ticket_unique([], "A")