def test_p_param_set_value():
    assets = Assets()
    p = Specification()
    calc1 = Calculator(p, assets)
    new_tau_int = np.array([0.396])
    calc1.p_param('tau_int', new_tau_int)
    assert np.allclose(calc1._Calculator__p.tau_int, new_tau_int)
def test_p_param_return_value():
    assets = Assets()
    p = Specification()
    dp = DepreciationParams()
    calc1 = Calculator(p, dp, assets)
    obj = calc1.p_param('tau_int')
    assert np.allclose(obj, np.array([0.31774924]))
def test_p_param_return_value():
    assets = Assets()
    p = Specification()
    calc1 = Calculator(p, assets)
    obj = calc1.p_param('tau_int')
    assert np.allclose(obj, np.array([0.31484782613369866]))