def test_different_worksheets(self, CellRange, r1, r2): cr1 = CellRange(r1) cr2 = CellRange(r2) with pytest.raises(ValueError): cr1._check_title(cr2)
def test_check_title(self, CellRange, r1, r2, expected): cr1 = CellRange(r1) cr2 = CellRange(r2) assert cr1._check_title(cr2) is expected