Пример #1
0
 def test_refuse_bad_ticket_name(self):
     assert_raise_library_error(
         lambda: config_structure.validate_ticket_name("@ticket"),
         (
             severities.ERROR,
             report_codes.BOOTH_TICKET_NAME_INVALID,
             {
                 "ticket_name": "@ticket",
             },
         ),
     )
Пример #2
0
 def test_refuse_bad_ticket_name(self):
     assert_raise_library_error(
         lambda: config_structure.validate_ticket_name("@ticket"),
         (
             severities.ERROR,
             report_codes.BOOTH_TICKET_NAME_INVALID,
             {
                 "ticket_name": "@ticket",
             },
         ),
     )
Пример #3
0
 def test_accept_valid_ticket_name(self):
     config_structure.validate_ticket_name("abc")
Пример #4
0
 def test_accept_valid_ticket_name(self):
     config_structure.validate_ticket_name("abc")