def test_comment(ExcelWriter, archive):
    from openpyxl.comments import Comment
    wb = Workbook()
    ws = wb.active
    ws['B5'].comment = Comment('A comment', 'The Author')
    writer = ExcelWriter(None, archive)
    writer._write_comment(ws)
    assert (archive.namelist() == ['xl/comments/comment1.xml', 'xl/drawings/commentsDrawing1.vml'])
    assert ('/xl/comments/comment1.xml' in writer.manifest.filenames)
    assert (ws.legacy_drawing == 'xl/drawings/commentsDrawing1.vml')
def test_comment(ExcelWriter, archive):
    from openpyxl.comments import Comment
    wb = Workbook()
    ws = wb.active
    ws['B5'].comment = Comment('A comment', 'The Author')
    writer = ExcelWriter(None, archive)
    writer._write_comment(ws)
    assert (archive.namelist() == ['xl/comments/comment1.xml', 'xl/drawings/commentsDrawing1.vml'])
    assert ('/xl/comments/comment1.xml' in writer.manifest.filenames)
    assert (ws.legacy_drawing == 'xl/drawings/commentsDrawing1.vml')