def test_write_chart(self, pie_chart): """check if some characteristic tags of PieChart are there""" cw = PieChartWriter(pie_chart) cw._write_chart() tagnames = ['{%s}pieChart' % CHART_NS, '{%s}varyColors' % CHART_NS] root = safe_iterator(cw.root) chart_tags = [e.tag for e in root] for tag in tagnames: assert tag in chart_tags assert 'c:catAx' not in chart_tags
def test_write_chart(self, pie_chart): """check if some characteristic tags of PieChart are there""" cw = PieChartWriter(pie_chart) cw._write_chart() tagnames = ['{%s}pieChart' % CHART_NS, '{%s}varyColors' % CHART_NS ] root = safe_iterator(cw.root) chart_tags = [e.tag for e in root] for tag in tagnames: assert tag in chart_tags assert 'c:catAx' not in chart_tags