def test_label_list_tojson(self): burndown = Burndown("test burndown") story_xml = ET.parse("data/story_1").getroot() story = Story(xml_to_dictonary(story_xml)) burndown = addState(burndown, [story]) labels = burndown_labels(burndown) self.assertEqual(labels_tojson(labels ), json.dumps(['all','epic_name']))
def labels(project_id): project_id = str(project_id) burndown = Burndown(project_id, localdata.getBurndownStates(project_id)) labels = burndown_labels(burndown) return labels_tojson(labels)