def test__is_constant_false(self): distribution = BetaUnivariate() distribution.fit(np.array([1, 2, 3, 4])) assert not distribution._is_constant()
def test__is_constant_true(self): distribution = BetaUnivariate() distribution.fit(np.array([1, 1, 1, 1])) assert distribution._is_constant()