import pydp as dp


class TestBoundedStandardDeviation:
    def test_c_api(self):
        a = [1, 5, 7, 9, 13]

        bsd = dp.BoundedStandardDeviation(1.0, 0, 15)
        result = bsd.result(a)
        assert type(result) is float

import pydp as dp


class TestBoundedStandardDeviation:
    def test_c_api(self):
        example_data = [1, 5, 7, 9, 13]
        epsilon = 1.0
        lower_bound, upper_bound = 0, 15
        bsd = dp.BoundedStandardDeviation(epsilon, lower_bound, upper_bound)
        result = bsd.result(example_data)
        assert type(result) is float
        assert lower_bound <= result <= upper_bound

Improve BoundedStandardDeviation test