def table_cells_to_regions(table):
    """
    Transform from a table of Cell objects to a table of cell region coordinates.
    This is primarily for testing purposes.

    """
    _table = []
    for row in table.rows:
        _row = []
        for cell in row:
            _row.append(cell.region)
        _table.append(_row)
    return _table
