def test_delete_dim_error(): curve = Curve([(1, 2, 3, 4), (5, 6, 7, 8)]) with pytest.raises(ValueError): curve.deletedim(axis=Axis.Y)
def test_delete_dim(index, expected_data): curve = Curve([(1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12)]) curve1 = curve.deletedim(index) assert curve1 == Curve(expected_data)