def test_shift_negative(self, CellRange): cr = CellRange("A1:B4") with pytest.raises(ValueError): cr.shift(-1, 2)
def test_shift(self, CellRange): cr = CellRange("A1:B4") cr.shift(1, 2) assert cr.coord == "B3:C6"