Example #1
0
 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",
             },
         ),
     )
Example #2
0
 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",
             },
         ),
     )
Example #3
0
 def test_do_not_raises_when_no_duplicated_ticket(self):
     config_structure.validate_ticket_unique([], "A")
Example #4
0
 def test_do_not_raises_when_no_duplicated_ticket(self):
     config_structure.validate_ticket_unique([], "A")