def test_addTagsToTagList(): f = entities.Feature() for r in range(5): t = entities.Tag() f.addTag(t) assert len(f.tags) == 5 assert isinstance(f.tags, List) assert isinstance(f.tags[0], entities.Tag)
def test_addTagsToTagList(): e = entities.Epic() for r in range(5): t = entities.Tag() e.addTag(t) assert len(e.tags) == 5 assert isinstance(e.tags, List) assert isinstance(e.tags[0], entities.Tag)
def test_addTagsToTagList(): task = entities.Task() for r in range(5): t = entities.Tag() task.addTag(t) assert len(task.tags) == 5 assert isinstance(task.tags, List) assert isinstance(task.tags[0], entities.Tag)
def test_add_tags_to_tag_list(): s = entities.UserStory() for r in range(5): t = entities.Tag() s.add_tag(t) assert len(s.tags) == 5 assert isinstance(s.tags, List) assert isinstance(s.tags[0], entities.Tag)
def test_init_tag(): t = entities.Tag() assert isinstance(t, entities.Tag)
def test_set_title_to_number(): t = entities.Tag() with pytest.raises(TypeError) as exc: t.title = 42 assert "value must be a string" in str(exc.value)
def test_set_title_to_string(): t = entities.Tag() t.title = "Test" assert t.title == "Test"
def test_setTitleToString(): t = entities.Tag() t.title = "Test" assert t.title == "Test"