def test_write_chart(ExcelWriter, archive):
    wb = Workbook()
    ws = wb.active
    chart = BarChart()
    ws.add_chart(chart)
    writer = ExcelWriter(wb, archive)
    writer._write_worksheets()
    assert ('xl/worksheets/sheet1.xml' in archive.namelist())
    assert (ws.path in writer.manifest.filenames)
    rel = ws._rels['rId1']
    assert (dict(rel) == {'Id': 'rId1', 'Target': '/xl/drawings/drawing1.xml', 'Type': 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing'})
def test_write_chart(ExcelWriter, archive):
    wb = Workbook()
    ws = wb.active
    chart = BarChart()
    ws.add_chart(chart)
    writer = ExcelWriter(wb, archive)
    writer._write_worksheets()
    assert ('xl/worksheets/sheet1.xml' in archive.namelist())
    assert (ws.path in writer.manifest.filenames)
    rel = ws._rels['rId1']
    assert (dict(rel) == {'Id': 'rId1', 'Target': '/xl/drawings/drawing1.xml', 'Type': 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing'})