def test_check_chart_with_anchor(anchor): from ..spreadsheet_drawing import _check_anchor c = BarChart() c.anchor = anchor anc = _check_anchor(c) assert anc._from.row == 16 assert anc._from.col == 4 assert anc.ext.width == 5400000 assert anc.ext.height == 2700000