def test_tag_does_not_contain_itself(self): assert_report_item_list_equal( lib._validate_tag_id_not_in_idref_list( "tag-not-in-list", self.idref_list, ), [], )
def test_tag_contains_itself(self): assert_report_item_list_equal( lib._validate_tag_id_not_in_idref_list( self.idref_list[0], self.idref_list, ), [fixture.error(reports.codes.TAG_CANNOT_CONTAIN_ITSELF)], )