def test_cell_range_repr(excel): cell_range = _CellRange( ExcelWrapper.RangeData(AddressRange('sheet!A1:B1'), '', ((0, 0), ))) assert 'sheet!A1:B1' == repr(cell_range)
def test_init_cell_address_error(excel): with pytest.raises(ValueError): _CellRange(ExcelWrapper.RangeData(AddressCell('A1'), '', ((0, ), )))