def test_grid_coords_span(table): grid = Grid(table) left, right, top, bottom = grid.cell_coords(0, 0, span=(2, 2)) assert left == 0. assert right == 6. assert top == 0. assert bottom == -6.
def test_grid_coords(table): grid = Grid(table) left, right, top, bottom = grid.cell_coords(1, 1, span=(1, 1)) assert left == 3. #, places=4) assert right == 6. assert top == -3. assert bottom == -6.