Example #1
0
 def test_empty_list(self):
     # pylint: disable=no-self-use
     assert_report_item_list_equal(
         lib._validate_tag_create_idref_list_not_empty([]),
         [
             fixture.error(
                 reports.codes.TAG_CANNOT_CREATE_EMPTY_TAG_NO_IDS_SPECIFIED,
             )
         ],
     )
Example #2
0
 def test_not_empty_list(self):
     # pylint: disable=no-self-use
     assert_report_item_list_equal(
         lib._validate_tag_create_idref_list_not_empty(["id"]),
         [],
     )