def check_cdf_sf(distfn, arg, msg):
    values = [0.001, 0.5, 0.999]
    npt.assert_almost_equal(distfn.cdf(values, *arg),
            1. - distfn.sf(values, *arg),
            decimal=DECIMAL, err_msg=msg +' - sf+cdf == 1')
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/distributions/tests/test_edgeworth.py/check_cdf_sf/original